Skip to content
Snippets Groups Projects
Commit 4b9d6950 authored by Philipp Memmel's avatar Philipp Memmel
Browse files

fix private public chat lock interference

parent ef337acb
No related branches found
No related tags found
No related merge requests found
......@@ -229,7 +229,8 @@ const ChatContainer = (props) => {
export default lockContextContainer(injectIntl(withTracker(({ intl, userLocks }) => {
const chatID = Session.get('idChatOpen');
const isChatLocked = userLocks.userPrivateChat || userLocks.userPublicChat;
const isChatLocked = (userLocks.userPrivateChat && chatID !== PUBLIC_CHAT_KEY)
|| (userLocks.userPublicChat && chatID === PUBLIC_CHAT_KEY);
if (!chatID) {
// No chatID is set so the panel is closed, about to close, or wasn't opened correctly
......
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