android, desktop: crash handler addition (#3517)
* android, desktop: crash handler addition * added
This commit is contained in:
parent
4c6d52ba75
commit
ccc62274ee
@ -48,14 +48,13 @@ fun showApp() {
|
|||||||
// If the left side of screen has open modal, it's probably caused the crash
|
// If the left side of screen has open modal, it's probably caused the crash
|
||||||
if (ModalManager.start.hasModalsOpen()) {
|
if (ModalManager.start.hasModalsOpen()) {
|
||||||
ModalManager.start.closeModal()
|
ModalManager.start.closeModal()
|
||||||
} else if (ModalManager.start.hasModalsOpen() || ModalManager.center.hasModalsOpen() || ModalManager.end.hasModalsOpen()) {
|
} else if (ModalManager.center.hasModalsOpen() || ModalManager.end.hasModalsOpen()) {
|
||||||
ModalManager.start.closeModal()
|
|
||||||
ModalManager.center.closeModal()
|
ModalManager.center.closeModal()
|
||||||
ModalManager.end.closeModal()
|
ModalManager.end.closeModal()
|
||||||
// Better to not close fullscreen since it can contain passcode
|
// Better to not close fullscreen since it can contain passcode
|
||||||
} else {
|
} else {
|
||||||
// The last possible cause that can be closed
|
// The last possible cause that can be closed
|
||||||
chatModel.chatId.value
|
chatModel.chatId.value = null
|
||||||
chatModel.chatItems.clear()
|
chatModel.chatItems.clear()
|
||||||
}
|
}
|
||||||
chatModel.activeCall.value?.let {
|
chatModel.activeCall.value?.let {
|
||||||
|
Loading…
Reference in New Issue
Block a user