From 46bfab3eb7423498304c3b6f3437aa9eaea014ca Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 3 Jun 2021 16:49:35 +0200 Subject: [PATCH] fix some lint and comment --- src/matrix/room/timeline/entries/EventEntry.js | 1 + src/matrix/storage/idb/stores/RoomStateStore.js | 4 ---- src/mocks/poll.js | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/matrix/room/timeline/entries/EventEntry.js b/src/matrix/room/timeline/entries/EventEntry.js index 4dbb352f..95440471 100644 --- a/src/matrix/room/timeline/entries/EventEntry.js +++ b/src/matrix/room/timeline/entries/EventEntry.js @@ -122,6 +122,7 @@ export class EventEntry extends BaseEventEntry { if (redactionEvent) { return redactionEvent.content?.reason; } + // fall back to local echo reason return super.redactionReason; } } \ No newline at end of file diff --git a/src/matrix/storage/idb/stores/RoomStateStore.js b/src/matrix/storage/idb/stores/RoomStateStore.js index 73bde1ec..99fc23f7 100644 --- a/src/matrix/storage/idb/stores/RoomStateStore.js +++ b/src/matrix/storage/idb/stores/RoomStateStore.js @@ -26,10 +26,6 @@ export class RoomStateStore { this._roomStateStore = idbStore; } - getAllForType(roomId, type) { - throw new Error("unimplemented"); - } - get(roomId, type, stateKey) { const key = encodeKey(roomId, type, stateKey); return this._roomStateStore.get(key); diff --git a/src/mocks/poll.js b/src/mocks/poll.js index 40348bb3..aaadaa27 100644 --- a/src/mocks/poll.js +++ b/src/mocks/poll.js @@ -15,7 +15,6 @@ limitations under the License. */ export async function poll(fn) { - let result; do { const result = fn(); if (result) {