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

Merge pull request #12645 from ramonlsouza/private-chat-shortcuts

fix: private chat shortcuts
parents 3d27a23a bcb1eff3
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,8 @@ const Chat = (props) => {
const userSentMessage = UserSentMessageCollection.findOne({ userId: Auth.userID, sent: true });
const HIDE_CHAT_AK = shortcuts.hidePrivateChat;
const CLOSE_CHAT_AK = shortcuts.closePrivateChat;
const HIDE_CHAT_AK = shortcuts.hideprivatechat;
const CLOSE_CHAT_AK = shortcuts.closeprivatechat;
ChatLogger.debug('ChatComponent::render', props);
return (
<div
......@@ -75,7 +75,7 @@ const Chat = (props) => {
window.dispatchEvent(new Event('panelChanged'));
}}
aria-label={intl.formatMessage(intlMessages.hideChatLabel, { 0: title })}
accessKey={HIDE_CHAT_AK}
accessKey={chatID !== 'public' ? HIDE_CHAT_AK : null}
label={title}
icon="left_arrow"
className={styles.hideBtn}
......
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