Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3265417
D12494.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
913 B
Referenced Files
None
Subscribers
None
D12494.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12494: [lib] Factor out defaultSubscription in createPendingThread
Attached
Detach File
Event Timeline
Log In to Comment