ui: delay closing support view on acceptance for items to be marked read (#6244)

* ui: delay closing support view on acceptance for items to be marked read

* move to coroutine

* increase delay
This commit is contained in:
spaced4ndy
2025-09-07 07:30:59 +00:00
committed by GitHub
parent ca9b0d4e43
commit 764ea39cdb
2 changed files with 10 additions and 4 deletions
@@ -2913,10 +2913,13 @@ object ChatController {
&& ModalManager.end.hasModalOpen(ModalViewId.SECONDARY_CHAT)
&& chatModel.secondaryChatsContext.value?.secondaryContextFilter is SecondaryContextFilter.GroupChatScopeContext
) {
withContext(Dispatchers.Main) {
chatModel.secondaryChatsContext.value = null
CoroutineScope(Dispatchers.Default).launch {
delay(1000L)
withContext(Dispatchers.Main) {
chatModel.secondaryChatsContext.value = null
}
ModalManager.end.closeModals()
}
ModalManager.end.closeModals()
}
}
is CR.JoinedGroupMember ->