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
Этот коммит содержится в:
enahum
2017-02-27 17:55:12 -03:00
коммит произвёл GitHub
родитель 48f97a5a2a
Коммит f07571d79d
5 изменённых файлов: 254 добавлений и 49 удалений

Просмотреть файл

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