Ускорено подключение, исправлен кэш участников групп и обновлена версия до 1.1.5

This commit is contained in:
2026-03-09 20:20:27 +05:00
parent 41faa98130
commit c2e27cf543
9 changed files with 39 additions and 52 deletions

View File

@@ -163,11 +163,8 @@ class AuthStateManager(
// Step 8: Connect and authenticate with protocol
ProtocolManager.connect()
// Give WebSocket time to connect before authenticating
kotlinx.coroutines.delay(500)
ProtocolManager.authenticate(keyPair.publicKey, privateKeyHash)
ProtocolManager.reconnectNowIfNeeded("auth_state_create")
Result.success(decryptedAccount)
} catch (e: Exception) {
@@ -210,11 +207,8 @@ class AuthStateManager(
// Connect and authenticate with protocol
ProtocolManager.connect()
// Give WebSocket time to connect before authenticating
kotlinx.coroutines.delay(500)
ProtocolManager.authenticate(decryptedAccount.publicKey, decryptedAccount.privateKeyHash)
ProtocolManager.reconnectNowIfNeeded("auth_state_unlock")
Result.success(decryptedAccount)
} catch (e: Exception) {