android, desktop, ios: show progress indicator after 0.5s

Accepting a request or joining a group usually takes longer than the
previous 1s threshold, so the button looked inert for a second before
anything acknowledged the tap - which is what prompts a second tap.
This commit is contained in:
Narasimha-sc
2026-08-20 11:33:03 +00:00
parent 683434625e
commit ce6650a87a
2 changed files with 2 additions and 2 deletions
@@ -41,7 +41,7 @@ extension View {
}
}
private let progressTimeout: UInt64 = 1_000_000000
private let progressTimeout: UInt64 = 500_000000
extension Notification.Name {
static let chatViewWillBeginScrolling = Notification.Name("chatWillBeginScrolling")
@@ -3,7 +3,7 @@ package chat.simplex.common.views.helpers
import androidx.compose.runtime.*
import kotlinx.coroutines.delay
private const val PROGRESS_TIMEOUT_MS = 1000L
private const val PROGRESS_TIMEOUT_MS = 500L
@Composable
fun ProgressByTimeoutEffect(inProgress: Boolean, setProgressByTimeout: (Boolean) -> Unit) {