You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
remove unused clause
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user