Skip to content

Commit

Permalink
Fix age field check in event echo processing (#3635)
Browse files Browse the repository at this point in the history
Co-authored-by: David Baker <[email protected]>
  • Loading branch information
stas-demydiuk and dbkr authored Dec 5, 2024
1 parent c54ca29 commit c90ea98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit c90ea98

Please sign in to comment.