forked from mystiq/hydrogen-web
prevent endless loop when restoring messages that were already sent
This commit is contained in:
parent
060fb7af00
commit
7d271bb35e
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ export class SendQueue {
|
|||
const pendingEvent = this._pendingEvents.get(this._amountSent);
|
||||
console.log("trying to send", pendingEvent.content.body);
|
||||
if (pendingEvent.remoteId) {
|
||||
this._amountSent += 1;
|
||||
continue;
|
||||
}
|
||||
if (pendingEvent.needsEncryption) {
|
||||
|
|
Loading…
Reference in a new issue