forked from mystiq/hydrogen-web
Not needed as both evententry and pendingevententry return timestamp
This commit is contained in:
parent
447b98ce6c
commit
762ed96a3b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue