desktop: do not switch remote host when inactive host is disconnected (#3426)

This commit is contained in:
Evgeny Poberezkin 2023-11-22 12:14:49 +00:00 committed by GitHub
parent 69acac5331
commit 9442121efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1851,7 +1851,7 @@ object ChatController {
generalGetString(MR.strings.remote_host_was_disconnected_toast).format(disconnectedHost.hostDeviceName.ifEmpty { disconnectedHost.remoteHostId.toString() })
)
}
if (chatModel.currentRemoteHost.value != null) {
if (chatModel.remoteHostId == r.remoteHostId_) {
chatModel.currentRemoteHost.value = null
switchUIRemoteHost(null)
}