Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32164516
D15426.1765048312.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15426.1765048312.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15426: [lib] Put the requests into the background tab
Attached
Detach File
Event Timeline
Log In to Comment