fix(core): silently fail on AUTH_KEY_UNREGISTERED in updates.getState
This commit is contained in:
parent
64da48926f
commit
34016f849b
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ export class SessionConnection extends PersistentConnection {
|
|||
// we must send some user-related rpc to the server to make sure that
|
||||
// it will send us updates
|
||||
this.sendRpc({ _: 'updates.getState' }).catch((err: any) => {
|
||||
if (this._destroyed) return // silently fail
|
||||
if (this._destroyed || tl.RpcError.is(err, 'AUTH_KEY_UNREGISTERED')) return // silently fail
|
||||
this.log.warn('failed to send updates.getState: %s', err.text || err.message)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue