Web: Removed mobx warnings.
This commit is contained in:
parent
9649771be3
commit
b3c1349ad9
@ -953,12 +953,14 @@ class FilesActionStore {
|
||||
|
||||
if (foundIndex == -1) return;
|
||||
|
||||
runInAction(() => {
|
||||
const count = treeFolders[foundIndex].newItems;
|
||||
|
||||
treeFolders[foundIndex].newItems =
|
||||
newCount >= 0 ? count - newCount : 0;
|
||||
|
||||
this.treeFoldersStore.fetchTreeFolders();
|
||||
});
|
||||
})
|
||||
.then(() => toastr.success(t("RoomNotificationsDisabled")));
|
||||
case "unmute":
|
||||
@ -973,11 +975,13 @@ class FilesActionStore {
|
||||
|
||||
if (foundIndex == -1) return;
|
||||
|
||||
runInAction(() => {
|
||||
const count = treeFolders[foundIndex].newItems;
|
||||
|
||||
treeFolders[foundIndex].newItems = count + newCount;
|
||||
|
||||
this.treeFoldersStore.fetchTreeFolders();
|
||||
});
|
||||
})
|
||||
.then(() => toastr.success(t("RoomNotificationsEnabled")));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user