Fix age field check in event echo processing (#3635)

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
Stanislav Demydiuk
2024-12-05 18:08:41 +02:00
committed by GitHub
parent c54ca29aa8
commit c90ea985c6
+1 -1
View File
@@ -1396,7 +1396,7 @@ export class MatrixEvent extends TypedEventEmitter<MatrixEventEmittedEvents, Mat
this.emit(MatrixEventEvent.LocalEventIdReplaced, this);
}
this.localTimestamp = Date.now() - this.getAge()!;
this.localTimestamp = Date.now() - (this.getAge() ?? 0);
}
/**