mirror of
https://github.com/urbit/shrub.git
synced 2024-12-24 03:14:30 +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);
|
unreads[stat] = Boolean(unread);
|
||||||
if (
|
if (
|
||||||
unread &&
|
unread &&
|
||||||
|
stat in associations.chat &&
|
||||||
(selectedGroups.length === 0 ||
|
(selectedGroups.length === 0 ||
|
||||||
selectedGroups
|
selectedGroups
|
||||||
.map((e) => {
|
.map((e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user