mirror of
https://github.com/urbit/shrub.git
synced 2024-12-23 19:05:48 +03:00
chat-js: check for association in unreads count
Ensure chat has association so that we don't show chats from groups that we are no longer in. Fixes #2818
This commit is contained in:
parent
06c58764af
commit
7398306858
@ -73,6 +73,7 @@ export default class ChatApp extends React.Component<ChatAppProps, {}> {
|
||||
unreads[stat] = Boolean(unread);
|
||||
if (
|
||||
unread &&
|
||||
stat in associations.chat &&
|
||||
(selectedGroups.length === 0 ||
|
||||
selectedGroups
|
||||
.map((e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user