From 762ed96a3bd259a16f86aa6ff29fc0ab8931345a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 31 May 2021 11:58:01 +0200 Subject: [PATCH] Not needed as both evententry and pendingevententry return timestamp --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index 3e4e1569..ca15f207 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -87,8 +87,8 @@ export class BaseMessageTile extends SimpleTile { let isContinuation = false; if (prev && prev instanceof BaseMessageTile && prev.sender === this.sender) { // timestamp is null for pending events - const myTimestamp = this._entry.timestamp || this.clock.now(); - const otherTimestamp = prev._entry.timestamp || this.clock.now(); + const myTimestamp = this._entry.timestamp; + const otherTimestamp = prev._entry.timestamp; // other message was sent less than 5min ago isContinuation = (myTimestamp - otherTimestamp) < (5 * 60 * 1000); }