1
0
mirror of https://github.com/vector-im/hydrogen-web.git synced 2025-01-14 14:08:02 +01:00

emit update when receiving event id for related event ahead in the queue

This commit is contained in:
Bruno Windels 2021-05-20 15:02:45 +02:00
parent 619cf9bcbb
commit c3fb35848b

@ -111,6 +111,8 @@ export class SendQueue {
for (const relatedPE of relatedEvents) { for (const relatedPE of relatedEvents) {
relatedPE.setRelatedEventId(pendingEvent.remoteId); relatedPE.setRelatedEventId(pendingEvent.remoteId);
await this._tryUpdateEventWithTxn(relatedPE, txn); await this._tryUpdateEventWithTxn(relatedPE, txn);
// emit that we now have a related remote id
this._pendingEvents.update(relatedPE)
} }
} catch (err) { } catch (err) {
txn.abort(); txn.abort();