emit update when receiving event id for related event ahead in the queue
This commit is contained in:
parent
619cf9bcbb
commit
c3fb35848b
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Reference in a new issue