set a default idChatOpen value and fix unread messages counter
This commit is contained in:
parent
ad8cc2922c
commit
9cb36f22a7
@ -82,7 +82,7 @@ class AuthenticatedHandler extends Component {
|
||||
} = this.state;
|
||||
|
||||
Session.set('isChatOpen', false);
|
||||
Session.set('idChatOpen', '');
|
||||
Session.set('idChatOpen', 'public');
|
||||
Session.set('isMeetingEnded', false);
|
||||
Session.set('isPollOpen', false);
|
||||
Session.set('breakoutRoomIsOpen', false);
|
||||
|
@ -196,7 +196,7 @@ const updateScrollPosition =
|
||||
);
|
||||
|
||||
const updateUnreadMessage = (timestamp) => {
|
||||
const chatID = Session.get('idChatOpen');
|
||||
const chatID = Session.get('idChatOpen') || PUBLIC_CHAT_ID;
|
||||
const isPublic = chatID === PUBLIC_CHAT_ID;
|
||||
const chatType = isPublic ? PUBLIC_GROUP_CHAT_ID : chatID;
|
||||
return UnreadMessages.update(chatType, timestamp);
|
||||
|
Loading…
Reference in New Issue
Block a user