mirror of https://github.com/vector-im/riot-web
remove unused clause
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
d1503d8a65
commit
5a31b308cd
|
@ -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…
Reference in New Issue