Remove some scratch changes

This commit is contained in:
Eric Eastwood 2022-02-02 01:17:07 -06:00
parent dcc508c037
commit 5805ce0310
2 changed files with 1 additions and 5 deletions

View File

@ -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();
}

View File

@ -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);