summaryrefslogtreecommitdiffstats
path: root/webapp/actions/channel_actions.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/actions/channel_actions.jsx')
-rw-r--r--webapp/actions/channel_actions.jsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx
index 5f41d127d..582de54cc 100644
--- a/webapp/actions/channel_actions.jsx
+++ b/webapp/actions/channel_actions.jsx
@@ -316,9 +316,13 @@ export function autocompleteChannels(term, success, error) {
);
}
-export function updateChannelNotifyProps(data, success, error) {
- Client.updateChannelNotifyProps(data,
+export function updateChannelNotifyProps(data, options, success, error) {
+ Client.updateChannelNotifyProps(Object.assign({}, data, options),
() => {
+ const member = ChannelStore.getMyMember(data.channel_id);
+ member.notify_props = Object.assign(member.notify_props, options);
+ ChannelStore.storeMyChannelMember(member);
+
if (success) {
success();
}