mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 12:04:57 +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) {
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user