Replaced ChannelMember.MarkUnreadLevel with ChannelMember.NotifyProps
Этот коммит содержится в:
@@ -568,6 +568,7 @@ export function updateChannelDesc(data, success, error) {
|
||||
track('api', 'api_channels_desc');
|
||||
}
|
||||
|
||||
// TODO remove me
|
||||
export function updateNotifyLevel(data, success, error) {
|
||||
$.ajax({
|
||||
url: '/api/v1/channels/update_notify_level',
|
||||
@@ -583,16 +584,16 @@ export function updateNotifyLevel(data, success, error) {
|
||||
});
|
||||
}
|
||||
|
||||
export function updateMarkUnreadLevel(data, success, error) {
|
||||
export function updateNotifyProps(data, success, error) {
|
||||
$.ajax({
|
||||
url: '/api/v1/channels/update_mark_unread_level',
|
||||
url: '/api/v1/channels/update_notify_props',
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
type: 'POST',
|
||||
data: JSON.stringify(data),
|
||||
success,
|
||||
error: function onError(xhr, status, err) {
|
||||
var e = handleError('updateMarkUnreadLevel', xhr, status, err);
|
||||
var e = handleError('updateNotifyProps', xhr, status, err);
|
||||
error(e);
|
||||
}
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user