remove unused clause
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d1503d8a65
commit
5a31b308cd
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ class RoomListStore extends Store {
|
||||||
// Speed optimization: Don't do complicated math if we don't have to.
|
// Speed optimization: Don't do complicated math if we don't have to.
|
||||||
if (!shouldHaveRoom) {
|
if (!shouldHaveRoom) {
|
||||||
listsClone[key] = this._state.lists[key].filter((e) => e.room.roomId !== room.roomId);
|
listsClone[key] = this._state.lists[key].filter((e) => e.room.roomId !== room.roomId);
|
||||||
} else if (getListAlgorithm(key, this._state.algorithm) === ALGO_MANUAL || !this._state.orderImportantFirst) {
|
} else if (getListAlgorithm(key, this._state.algorithm) === ALGO_MANUAL) {
|
||||||
// Manually ordered tags are sorted later, so for now we'll just clone the tag
|
// Manually ordered tags are sorted later, so for now we'll just clone the tag
|
||||||
// and add our room if needed
|
// and add our room if needed
|
||||||
listsClone[key] = this._state.lists[key].filter((e) => e.room.roomId !== room.roomId);
|
listsClone[key] = this._state.lists[key].filter((e) => e.room.roomId !== room.roomId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue