kotlin: refactor chat contexts 2 (null secondary context, pass context instead of content tag, straighten chat state code) (#5830)

This commit is contained in:
spaced4ndy authored and GitHub committed 2025-04-15 13:50:06 +00:00
1 parent f52d06af3a
commit 0f3e546e36
24 files changed
+462 -551

No files matched your search

@@ -80,9 +80,6 @@ actual class GlobalExceptionsHandler: Thread.UncaughtExceptionHandler {
chatModel.chatId.value = null
chatModel.chatsContext.chatItems.clearAndNotify()
}
withContext(Dispatchers.Main) {
chatModel.chatsContext.chatItems.clearAndNotify()
}
}
} else {
// ChatList, nothing to do. Maybe to show other view except ChatList