This commit is contained in:
Avently
2024-10-25 19:40:40 +07:00
parent 0146384437
commit 8e795d708d
@@ -158,7 +158,9 @@ fun MainScreen() {
showChatDatabaseError -> {
// Prevent showing keyboard on Android when: passcode enabled and database password not saved
if (!unauthorized.value && chatModel.chatDbStatus.value != null) {
DatabaseErrorView(chatModel.chatDbStatus, chatModel.controller.appPrefs)
CompositionLocalProvider(LocalAppBarHandler provides remember { AppBarHandler() }) {
DatabaseErrorView(chatModel.chatDbStatus, chatModel.controller.appPrefs)
}
}
}
remember { chatModel.chatDbEncrypted }.value == null || localUserCreated == null -> SplashView()