mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
revert last tried pending event status to waiting when offline
so we don't fail the check if we can immediately remove when redacting
This commit is contained in:
parent
df9e886f32
commit
618a32e6c0
@ -88,6 +88,11 @@ export class PendingEvent {
|
||||
this._emitUpdate("status");
|
||||
}
|
||||
|
||||
setWaiting() {
|
||||
this._status = SendStatus.Waiting;
|
||||
this._emitUpdate("status");
|
||||
}
|
||||
|
||||
get status() { return this._status; }
|
||||
get error() { return this._error; }
|
||||
|
||||
|
@ -74,6 +74,7 @@ export class SendQueue {
|
||||
if (err instanceof ConnectionError) {
|
||||
this._offline = true;
|
||||
log.set("offline", true);
|
||||
pendingEvent.setWaiting();
|
||||
} else {
|
||||
log.catch(err);
|
||||
pendingEvent.setError(err);
|
||||
|
Loading…
Reference in New Issue
Block a user