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, }; }