1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-07 23:02:56 +03:00

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

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);
}
/**