mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-06-05 08:02:08 +00:00
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:
+6
-3
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user