Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3374592
D8096.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
921 B
Referenced Files
None
Subscribers
None
D8096.diff
View Options
diff --git a/web/modals/chat/message-results-modal.react.js b/web/modals/chat/message-results-modal.react.js
--- a/web/modals/chat/message-results-modal.react.js
+++ b/web/modals/chat/message-results-modal.react.js
@@ -72,8 +72,13 @@
return [];
}
+ const pinnedMessageIDs = new Set();
+ translatedMessageResults.forEach(item => pinnedMessageIDs.add(item.id));
+
const chatMessageInfoItems = chatMessageInfos.filter(
- item => item.itemType === 'message' && item.isPinned,
+ item =>
+ item.itemType === 'message' &&
+ pinnedMessageIDs.has(item.messageInfo.id),
);
// By the nature of using messageListData and passing in
@@ -98,7 +103,7 @@
}
return sortedChatMessageInfoItems;
- }, [chatMessageInfos, rawMessageResults]);
+ }, [translatedMessageResults, chatMessageInfos, rawMessageResults]);
const modifiedItems = React.useMemo(
() =>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 4:18 PM (20 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2590954
Default Alt Text
D8096.diff (921 B)
Attached To
Mode
D8096: [web] Display pinned messages not present in Redux
Attached
Detach File
Event Timeline
Log In to Comment