mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +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({
|
const pendingEvent = new PendingEvent({
|
||||||
data,
|
data,
|
||||||
remove: () => this._removeEvent(pendingEvent),
|
remove: () => this._removeEvent(pendingEvent),
|
||||||
emitUpdate: () => this._pendingEvents.set(pendingEvent),
|
emitUpdate: () => this._pendingEvents.update(pendingEvent),
|
||||||
attachments
|
attachments
|
||||||
});
|
});
|
||||||
return pendingEvent;
|
return pendingEvent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user