don't add the pending event again if removed already, fixes #289

This commit is contained in:
Bruno Windels 2021-04-08 18:36:26 +02:00
parent f976eeaf13
commit 9e697c6cbe

View file

@ -36,7 +36,7 @@ export class SendQueue {
const pendingEvent = new PendingEvent({
data,
remove: () => this._removeEvent(pendingEvent),
emitUpdate: () => this._pendingEvents.set(pendingEvent),
emitUpdate: () => this._pendingEvents.update(pendingEvent),
attachments
});
return pendingEvent;