From c3fb35848bac65ff47229c99c222423b89d50878 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 20 May 2021 15:02:45 +0200 Subject: [PATCH] emit update when receiving event id for related event ahead in the queue --- src/matrix/room/sending/SendQueue.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/matrix/room/sending/SendQueue.js b/src/matrix/room/sending/SendQueue.js index 287831e8..5fa6dca6 100644 --- a/src/matrix/room/sending/SendQueue.js +++ b/src/matrix/room/sending/SendQueue.js @@ -111,6 +111,8 @@ export class SendQueue { for (const relatedPE of relatedEvents) { relatedPE.setRelatedEventId(pendingEvent.remoteId); await this._tryUpdateEventWithTxn(relatedPE, txn); + // emit that we now have a related remote id + this._pendingEvents.update(relatedPE) } } catch (err) { txn.abort();