mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
Fix favourites losing rooms and sorting weirdly
By not flagging the room as inserted, we end up sorting it. Fixes https://github.com/vector-im/riot-web/issues/8857
This commit is contained in:
parent
ade9ee3c18
commit
d662dccfba
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ class RoomListStore extends Store {
|
||||||
// Speed optimization: Skip the loop below if we're not going to do anything productive
|
// Speed optimization: Skip the loop below if we're not going to do anything productive
|
||||||
if (!hasRoom || LIST_ORDERS[key] !== 'recent') {
|
if (!hasRoom || LIST_ORDERS[key] !== 'recent') {
|
||||||
listsClone[key] = this._state.lists[key];
|
listsClone[key] = this._state.lists[key];
|
||||||
|
inserted = true; // Ensure that we don't try and sort the room into the tag
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
listsClone[key] = [];
|
listsClone[key] = [];
|
||||||
|
|
Loading…
Reference in a new issue