From 27b19580edd211f216f6b7e7cc2504bbc45027d5 Mon Sep 17 00:00:00 2001 From: Diogo Date: Mon, 30 Sep 2024 12:11:37 +0100 Subject: [PATCH] change delay position --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index bb673eb002..f585541844 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -1573,9 +1573,9 @@ private fun FloatingDate( .collect { setDateVisibility(true) hideDateWhenNotScrolling?.cancel() + delay(1000) hideDateWhenNotScrolling = coroutineScope.launch { - delay(1000) setDateVisibility(false) hideDateWhenNotScrolling = null }