You've already forked matrix-js-sdk
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:
committed by
GitHub
parent
c54ca29aa8
commit
c90ea985c6
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user