#4699 Move instances of Client.updateChannelNotifyProps() in components to an action (#4862)

Этот коммит содержится в:
Björn Roland
2016-12-21 15:27:42 +01:00
коммит произвёл enahum
родитель 2c09582d89
Коммит f0b74e78dd
2 изменённых файлов: 28 добавлений и 11 удалений

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

@@ -260,3 +260,18 @@ export function autocompleteChannels(term, success, error) {
}
);
}
export function updateChannelNotifyProps(data, success, error) {
Client.updateChannelNotifyProps(data,
() => {
if (success) {
success();
}
},
(err) => {
if (error) {
error(err);
}
}
);
}