Merge pull request #68 from vector-im/bwindels/fix-room-sorting-stability

use same check for timestamp validity
This commit is contained in:
Bruno Windels 2020-08-27 10:44:38 +00:00 committed by GitHub
commit a6d92b7c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ export class RoomTileViewModel extends ViewModel {
// if either does not have a timestamp, put the one with a timestamp first
if (myTimestampValid !== theirTimestampValid) {
log("checking if either does not have lastMessageTimestamp ...", myTimestamp, theirTimestamp);
if (theirTimestamp === null) {
if (!theirTimestampValid) {
return logResult(-1);
}
return logResult(1);