Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33232363
D12494.1768564610.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
913 B
Referenced Files
None
Subscribers
None
D12494.1768564610.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
Fri, Jan 16, 11:56 AM (14 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5944046
Default Alt Text
D12494.1768564610.diff (913 B)
Attached To
Mode
D12494: [lib] Factor out defaultSubscription in createPendingThread
Attached
Detach File
Event Timeline
Log In to Comment