Skip to content
Snippets Groups Projects
Commit bf6bbfca authored by Tainan Felipe's avatar Tainan Felipe
Browse files

Add conditional to don't show dropdown when no opition avaible

parent 25bf0096
No related branches found
No related tags found
No related merge requests found
......@@ -144,11 +144,14 @@ class ChatDropdown extends PureComponent {
}
render() {
const { intl } = this.props;
const {
intl,
amIModerator,
} = this.props;
const { isSettingOpen } = this.state;
const availableActions = this.getAvailableActions();
if (!amIModerator && !ENABLE_SAVE_AND_COPY_PUBLIC_CHAT) return null;
return (
<Dropdown
isOpen={isSettingOpen}
......
......@@ -396,7 +396,7 @@ public:
enabled: true
itemsPerPage: 100
timeBetweenFetchs: 1000
enableSaveAndCopyPublicChat: false
enableSaveAndCopyPublicChat: true
bufferChatInsertsMs: 0
startClosed: false
min_message_length: 1
......
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