mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-3193 Add channel notification preferences for push notifications (#5512)
* PLT-3193 Add channel notification preferences for push and email notifications * Fixing UI * Removing email as preferences from the UI for now * move to action * fix client test
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user