summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/react/components/channel_notifications.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/react/components/channel_notifications.jsx b/web/react/components/channel_notifications.jsx
index c49e76333..eaa1c8255 100644
--- a/web/react/components/channel_notifications.jsx
+++ b/web/react/components/channel_notifications.jsx
@@ -81,6 +81,11 @@ export default class ChannelNotifications extends React.Component {
var channelId = this.state.channelId;
var notifyLevel = this.state.notifyLevel;
+ if (ChannelStore.getMember(channelId).notify_level === notifyLevel) {
+ this.updateSection('');
+ return;
+ }
+
var data = {};
data.channel_id = channelId;
data.user_id = UserStore.getCurrentId();
@@ -244,6 +249,11 @@ export default class ChannelNotifications extends React.Component {
const channelId = this.state.channelId;
const markUnreadLevel = this.state.markUnreadLevel;
+ if (ChannelStore.getMember(channelId).mark_unread_level === markUnreadLevel) {
+ this.updateSection('');
+ return;
+ }
+
const data = {
channel_id: channelId,
user_id: UserStore.getCurrentId(),