mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
use same check for timestamp validity as timestamp can be undefined sometimes
This commit is contained in:
parent
8543ec00d0
commit
05821b0fdf
@ -87,7 +87,7 @@ export class RoomTileViewModel extends ViewModel {
|
|||||||
// if either does not have a timestamp, put the one with a timestamp first
|
// if either does not have a timestamp, put the one with a timestamp first
|
||||||
if (myTimestampValid !== theirTimestampValid) {
|
if (myTimestampValid !== theirTimestampValid) {
|
||||||
log("checking if either does not have lastMessageTimestamp ...", myTimestamp, theirTimestamp);
|
log("checking if either does not have lastMessageTimestamp ...", myTimestamp, theirTimestamp);
|
||||||
if (theirTimestamp === null) {
|
if (!theirTimestampValid) {
|
||||||
return logResult(-1);
|
return logResult(-1);
|
||||||
}
|
}
|
||||||
return logResult(1);
|
return logResult(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user