chore: add server switcher (#2717)
* wip * wip2 * refactor: use radio button group * chore: add persisting host per workspace * chore: header style * chore: update server picker title style * chore: margin * chore: label * chore: remove separator * rename migration to latest snjs version --------- Co-authored-by: Aman Harwara <amanharwara@protonmail.com>
This commit is contained in:
@@ -576,10 +576,10 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
|
||||
return compareVersions(userVersion, ProtocolVersion.V004) >= 0
|
||||
}
|
||||
|
||||
public async setCustomHost(host: string): Promise<void> {
|
||||
public async setCustomHost(host: string, websocketUrl?: string): Promise<void> {
|
||||
await this.setHost.execute(host)
|
||||
|
||||
this.sockets.setWebSocketUrl(undefined)
|
||||
this.sockets.setWebSocketUrl(websocketUrl)
|
||||
}
|
||||
|
||||
public getUserPasswordCreationDate(): Date | undefined {
|
||||
|
||||
@@ -1528,6 +1528,7 @@ export class Dependencies {
|
||||
this.get<HttpService>(TYPES.HttpService),
|
||||
this.get<DiskStorageService>(TYPES.DiskStorageService),
|
||||
this.options.defaultHost,
|
||||
this.options.identifier,
|
||||
this.get<InMemoryStore>(TYPES.InMemoryStore),
|
||||
this.get<PureCryptoInterface>(TYPES.Crypto),
|
||||
this.get<SessionStorageMapper>(TYPES.SessionStorageMapper),
|
||||
|
||||
Reference in New Issue
Block a user