summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_notifications_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/channel_notifications_modal.jsx')
-rw-r--r--webapp/components/channel_notifications_modal.jsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/webapp/components/channel_notifications_modal.jsx b/webapp/components/channel_notifications_modal.jsx
index 35a2e4087..91563a096 100644
--- a/webapp/components/channel_notifications_modal.jsx
+++ b/webapp/components/channel_notifications_modal.jsx
@@ -65,9 +65,9 @@ export default class ChannelNotificationsModal extends React.Component {
Client.updateChannelNotifyProps(data,
() => {
// YUCK
- var member = ChannelStore.getMember(channelId);
+ var member = ChannelStore.getMyMember(channelId);
member.notify_props.desktop = notifyLevel;
- ChannelStore.setChannelMember(member);
+ ChannelStore.storeMyChannelMember(member);
this.updateSection('');
},
(err) => {
@@ -256,13 +256,13 @@ export default class ChannelNotificationsModal extends React.Component {
mark_unread: markUnreadLevel
};
- //TODO: This should be fixed, moved to event_helpers
+ //TODO: This should be fixed, moved to actions
Client.updateChannelNotifyProps(data,
() => {
// Yuck...
- var member = ChannelStore.getMember(channelId);
+ var member = ChannelStore.getMyMember(channelId);
member.notify_props.mark_unread = markUnreadLevel;
- ChannelStore.setChannelMember(member);
+ ChannelStore.storeMyChannelMember(member);
this.updateSection('');
},
(err) => {