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