Page MenuHomePhorge

D15426.1765048312.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D15426.1765048312.diff

diff --git a/lib/utils/create-farcaster-raw-thread-info.js b/lib/utils/create-farcaster-raw-thread-info.js
--- a/lib/utils/create-farcaster-raw-thread-info.js
+++ b/lib/utils/create-farcaster-raw-thread-info.js
@@ -140,13 +140,15 @@
? permissionBlobs.Admins
: permissionBlobs.Members;
}
+
+ const background = options.category === 'request' || currentUserOptions.muted;
const currentUser: ThreadCurrentUserInfo =
minimallyEncodeThreadCurrentUserInfo({
role: currentUserRole?.id,
permissions: createPermissionsInfo(permissionsBlob, threadID, threadType),
subscription: {
- home: !currentUserOptions.muted,
- pushNotifs: !currentUserOptions.muted,
+ home: !background,
+ pushNotifs: !background,
},
unread: currentUserOptions.unread,
});
@@ -381,14 +383,17 @@
const threadIsMuted =
!threadInfo.currentUser.subscription.home ||
!threadInfo.currentUser.subscription.pushNotifs;
- if (threadIsMuted !== conversation.viewerContext.muted) {
+ const shouldBeMuted =
+ conversation.viewerContext.category === 'request' ||
+ conversation.viewerContext.muted;
+ if (threadIsMuted !== shouldBeMuted) {
updatedThreadInfo = {
...updatedThreadInfo,
currentUser: {
...updatedThreadInfo.currentUser,
subscription: {
- home: !conversation.viewerContext.muted,
- pushNotifs: !conversation.viewerContext.muted,
+ home: !shouldBeMuted,
+ pushNotifs: !shouldBeMuted,
},
},
};

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 6, 7:11 PM (19 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839337
Default Alt Text
D15426.1765048312.diff (1 KB)

Event Timeline