mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
prevent endless loop when restoring messages that were already sent
This commit is contained in:
parent
d759e1429f
commit
e5b1cbbcd3
@ -48,6 +48,7 @@ export class SendQueue {
|
|||||||
const pendingEvent = this._pendingEvents.get(this._amountSent);
|
const pendingEvent = this._pendingEvents.get(this._amountSent);
|
||||||
console.log("trying to send", pendingEvent.content.body);
|
console.log("trying to send", pendingEvent.content.body);
|
||||||
if (pendingEvent.remoteId) {
|
if (pendingEvent.remoteId) {
|
||||||
|
this._amountSent += 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (pendingEvent.needsEncryption) {
|
if (pendingEvent.needsEncryption) {
|
||||||
|
Loading…
Reference in New Issue
Block a user