Skip to content
Snippets Groups Projects
Unverified Commit 34e1c2f1 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #11989 from PhMemmel/fix-private-public-chat-lock

Fix private public chat lock interference
parents dcc8f5d7 319138ed
No related branches found
No related tags found
No related merge requests found
......@@ -229,8 +229,6 @@ const ChatContainer = (props) => {
export default lockContextContainer(injectIntl(withTracker(({ intl, userLocks }) => {
const chatID = Session.get('idChatOpen');
const isChatLocked = userLocks.userPrivateChat || userLocks.userPublicChat;
if (!chatID) {
// No chatID is set so the panel is closed, about to close, or wasn't opened correctly
return {
......@@ -238,6 +236,9 @@ export default lockContextContainer(injectIntl(withTracker(({ intl, userLocks })
};
}
const isChatLocked = (userLocks.userPrivateChat && chatID !== PUBLIC_CHAT_KEY)
|| (userLocks.userPublicChat && chatID === PUBLIC_CHAT_KEY);
const { connected: isMeteorConnected } = Meteor.status();
return {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment