Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33054034
D6971.1768426920.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
D6971.1768426920.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6971: [web] Filter available chats based on the picked community
Attached
Detach File
Event Timeline
Log In to Comment