From 0703cf891521547faccdd83bc02bba1c5ae39460 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 18 Jun 2021 15:06:49 +0200 Subject: [PATCH] cleanup --- src/matrix/room/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 41ba9fca..1258128b 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -419,6 +419,7 @@ export function tests() { content: {}, relatedTxnId: reactionEntry.id }})); + // TODO: await nextUpdate here with ListObserver, to ensure entry emits an update when pendingAnnotations changes await poll(() => timeline.entries.length === 3); assert.equal(entry.pendingAnnotations.get("👋"), 0); // 4. cancel redaction @@ -452,7 +453,6 @@ export function tests() { assert.equal(reactionEntry.relation.key, "👋"); }, "remote reaction": async assert => { - const storage = await createMockStorage(); const messageEntry = new EventEntry({ event: withTextBody("hi bob!", createEvent("m.room.message", "!abc", alice)), fragmentId: 1, eventIndex: 2, roomId,