From 5805ce0310253ef55b8088df4aaeb12b4231cb2d Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 2 Feb 2022 01:17:07 -0600 Subject: [PATCH] Remove some scratch changes --- src/domain/session/room/timeline/tiles/BaseMessageTile.js | 3 +-- src/matrix/room/timeline/Timeline.js | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/domain/session/room/timeline/tiles/BaseMessageTile.js b/src/domain/session/room/timeline/tiles/BaseMessageTile.js index a98a3a6b..f7db1e72 100644 --- a/src/domain/session/room/timeline/tiles/BaseMessageTile.js +++ b/src/domain/session/room/timeline/tiles/BaseMessageTile.js @@ -87,7 +87,7 @@ export class BaseMessageTile extends SimpleTile { } get isOwn() { - return this._ownMember && this._entry.sender === this._ownMember.userId; + return this._entry.sender === this._ownMember?.userId; } get isContinuation() { @@ -124,7 +124,6 @@ export class BaseMessageTile extends SimpleTile { updateEntry(entry, param, tilesCreator) { const action = super.updateEntry(entry, param, tilesCreator); - console.log('updateEntry', entry); if (action.shouldUpdate) { this._updateReactions(); } diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 66ded2a9..12997a21 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -187,8 +187,6 @@ export class Timeline { } _addLocalRelationsToNewRemoteEntries(entries) { - console.log('_addLocalRelationsToNewRemoteEntries entries', entries) - console.log('this._localEntries?.hasSubscriptions entries', this._localEntries?.hasSubscriptions) // because it is not safe to iterate a derived observable collection // before it has any subscriptions, we bail out if this isn't // the case yet. This can happen when sync adds or replaces entries @@ -202,7 +200,6 @@ export class Timeline { if (!this._localEntries?.hasSubscriptions) { return; } - console.log('after') // find any local relations to these new remote events or maybe these // new remote events reference one of the other new remote events we have. const entryList = new ConcatList(entries, this._localEntries);