Fix threads timeline message ordering (#7968)

This commit is contained in:
Germain 2022-03-03 15:22:16 +00:00 committed by GitHub
parent 75abf03fed
commit acd12c38a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 12 deletions

View file

@ -47,7 +47,7 @@ export class ThreadNotificationState extends NotificationState implements IDestr
const isOwn = myUserId === event.getSender();
const readReceipt = this.thread.room.getReadReceiptForUserId(myUserId);
if (!isOwn && !readReceipt || event.getTs() >= readReceipt.data.ts) {
if (!isOwn && !readReceipt || (readReceipt && event.getTs() >= readReceipt.data.ts)) {
const actions = client.getPushActionsForEvent(event, true);
if (actions?.tweaks) {