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