feat(auth): server endpoint in bottom sheet on login
This commit is contained in:
@@ -70,7 +70,8 @@ class Api {
|
||||
});
|
||||
|
||||
try {
|
||||
await _connection.connect(ServerConfig.host, ServerConfig.port);
|
||||
final endpoint = await ServerConfig.loadEndpoint();
|
||||
await _connection.connect(endpoint.host, endpoint.port);
|
||||
} catch (e) {
|
||||
logger.e('Не удалось подключиться: $e');
|
||||
_cleanup();
|
||||
|
||||
Reference in New Issue
Block a user