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
@@ -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) => {
