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:
enahum
2017-02-27 17:55:12 -03:00
committed by GitHub
parent 48f97a5a2a
commit f07571d79d
5 changed files with 254 additions and 49 deletions

View File

@@ -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();
}