This commit is contained in:
Avently committed 2024-10-25 19:40:40 +07:00
1 parent 0146384437
commit 8e795d708d
1 file changed
+3 -1
@@ -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()