do not hide ReceiveDialogs on disconnect

This commit is contained in:
schlagmichdoch 2023-01-10 16:10:35 +01:00
parent 8d2bbc795d
commit bef7459019
2 changed files with 5 additions and 7 deletions

View file

@ -8,9 +8,7 @@ class ServerConnection {
Events.on('beforeunload', _ => this._disconnect());
Events.on('pagehide', _ => this._disconnect());
document.addEventListener('visibilitychange', _ => this._onVisibilityChange());
if (navigator.connection) {
navigator.connection.addEventListener('change', _ => this._disconnect());
}
if (navigator.connection) navigator.connection.addEventListener('change', _ => this._disconnect());
Events.on('reconnect', _ => this._reconnect());
Events.on('room-secrets', e => this._sendRoomSecrets(e.detail));
Events.on('room-secret-deleted', e => this.send({ type: 'room-secret-deleted', roomSecret: e.detail}));