ui: disable send field for disabled connection (based on authErrCounter) (#4193)

This commit is contained in:
spaced4ndy
2024-05-16 17:08:31 +04:00
committed by GitHub
parent 49e09ca449
commit d3e522e169
5 changed files with 44 additions and 8 deletions
+6
View File
@@ -1873,6 +1873,12 @@ func processReceivedMsg(_ res: ChatResponse) async {
m.updateGroupMemberConnectionStats(groupInfo, member, ratchetSyncProgress.connectionStats)
}
}
case let .contactDisabled(user, contact):
if active(user) {
await MainActor.run {
m.updateContact(contact)
}
}
case let .remoteCtrlFound(remoteCtrl, ctrlAppInfo_, appVersion, compatible):
await MainActor.run {
if let sess = m.remoteCtrlSession, case .searching = sess.sessionState {