chore: fix establishing connection to websockets when session is loaded from disk (#2474)

This commit is contained in:
Karol Sójko
2023-09-01 16:16:01 +02:00
committed by GitHub
parent bd2172b773
commit 318a2caf08

View File

@@ -169,6 +169,12 @@ export class SessionManager
}
}
const serverHost = this.storage.getValue<string>(StorageKey.ServerHost)
if (serverHost) {
void this.apiService.setHost(serverHost)
this.httpService.setHost(serverHost)
}
const rawSession = this.storage.getValue<RawStorageValue>(StorageKey.Session)
if (rawSession) {
try {