Page MenuHomePhabricator

D12494.diff
No OneTemporary

D12494.diff

diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -426,6 +426,11 @@
+sourceMessageID?: string,
};
+const defaultSubscription = {
+ pushNotifs: false,
+ home: false,
+};
+
function createPendingThread({
viewerID,
threadType,
@@ -490,10 +495,7 @@
currentUser: minimallyEncodeThreadCurrentUserInfo({
role: role.id,
permissions: membershipPermissions,
- subscription: {
- pushNotifs: false,
- home: false,
- },
+ subscription: defaultSubscription,
unread: false,
}),
repliesCount: 0,
@@ -754,10 +756,7 @@
currentUser = {
role: null,
permissions: currentUserPermissions,
- subscription: {
- home: false,
- pushNotifs: false,
- },
+ subscription: defaultSubscription,
unread: null,
};
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 1:17 AM (21 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2509701
Default Alt Text
D12494.diff (913 B)

Event Timeline