Page MenuHomePhorge

D6971.1768426920.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D6971.1768426920.diff

diff --git a/web/chat/chat-thread-list.react.js b/web/chat/chat-thread-list.react.js
--- a/web/chat/chat-thread-list.react.js
+++ b/web/chat/chat-thread-list.react.js
@@ -31,15 +31,22 @@
const isBackground = activeTab === 'Background';
+ const communityID = useSelector(state => state.communityPickerStore.chat);
+
const threadComponents: React.Node[] = React.useMemo(() => {
- const threads = threadList.map(item => (
- <ChatThreadListItem item={item} key={item.threadInfo.id} />
- ));
+ const threads = threadList
+ .filter(
+ item =>
+ !communityID ||
+ item.threadInfo.community === communityID ||
+ item.threadInfo.id === communityID,
+ )
+ .map(item => <ChatThreadListItem item={item} key={item.threadInfo.id} />);
if (threads.length === 0 && isBackground) {
threads.push(<EmptyItem key="emptyItem" />);
}
return threads;
- }, [threadList, isBackground]);
+ }, [threadList, isBackground, communityID]);
return (
<>

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 14, 9:42 PM (4 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5934140
Default Alt Text
D6971.1768426920.diff (1 KB)

Event Timeline