Changed notification preference submission to only be updated when options have actually changed
Этот коммит содержится в:
@@ -81,6 +81,11 @@ export default class ChannelNotifications extends React.Component {
|
|||||||
var channelId = this.state.channelId;
|
var channelId = this.state.channelId;
|
||||||
var notifyLevel = this.state.notifyLevel;
|
var notifyLevel = this.state.notifyLevel;
|
||||||
|
|
||||||
|
if (ChannelStore.getMember(channelId).notify_level === notifyLevel) {
|
||||||
|
this.updateSection('');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var data = {};
|
var data = {};
|
||||||
data.channel_id = channelId;
|
data.channel_id = channelId;
|
||||||
data.user_id = UserStore.getCurrentId();
|
data.user_id = UserStore.getCurrentId();
|
||||||
@@ -244,6 +249,11 @@ export default class ChannelNotifications extends React.Component {
|
|||||||
const channelId = this.state.channelId;
|
const channelId = this.state.channelId;
|
||||||
const markUnreadLevel = this.state.markUnreadLevel;
|
const markUnreadLevel = this.state.markUnreadLevel;
|
||||||
|
|
||||||
|
if (ChannelStore.getMember(channelId).mark_unread_level === markUnreadLevel) {
|
||||||
|
this.updateSection('');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
channel_id: channelId,
|
channel_id: channelId,
|
||||||
user_id: UserStore.getCurrentId(),
|
user_id: UserStore.getCurrentId(),
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user