Merge branch 'krille/fix-sorting-again' into 'master'

Fix sorting again and again god damn

See merge request famedly/famedlysdk!365
This commit is contained in:
Sorunome 2020-06-25 07:57:16 +00:00
commit 35ba666c0a

View file

@ -757,9 +757,6 @@ class Client {
} }
accountData[newAccountData.type] = newAccountData; accountData[newAccountData.type] = newAccountData;
if (onAccountData != null) onAccountData.add(newAccountData); if (onAccountData != null) onAccountData.add(newAccountData);
if (newAccountData.type == 'm.tag') {
_sortRooms();
}
} }
} }
if (sync.deviceLists != null) { if (sync.deviceLists != null) {
@ -1084,7 +1081,7 @@ class Client {
BasicRoomEvent.fromJson(eventUpdate.content); BasicRoomEvent.fromJson(eventUpdate.content);
} }
if (rooms[j].onUpdate != null) rooms[j].onUpdate.add(rooms[j].id); if (rooms[j].onUpdate != null) rooms[j].onUpdate.add(rooms[j].id);
if (eventUpdate.type == 'timeline') _sortRooms(); if (['timeline', 'account_data'].contains(eventUpdate.type)) _sortRooms();
} }
bool _sortLock = false; bool _sortLock = false;