mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-23 23:46:41 +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:
1 parent
ca9b0d4e43
commit
764ea39cdb
2 files changed
+10
-4
No files matched your search
+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