mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +01:00
don't add the pending event again if removed already, fixes #289
This commit is contained in:
parent
f976eeaf13
commit
9e697c6cbe
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user