mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
emit update when receiving event id for related event ahead in the queue
This commit is contained in:
parent
619cf9bcbb
commit
c3fb35848b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user