From e22fa499c260e422695c781ca4b16100d0cf1ef6 Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Tue, 20 Feb 2024 15:24:46 -0500 Subject: [PATCH] Reduce username debounce rate to 500ms. --- .../securesms/profiles/manage/UsernameEditViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditViewModel.kt b/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditViewModel.kt index c605fd0fe8..d5d4cb2bac 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditViewModel.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/profiles/manage/UsernameEditViewModel.kt @@ -386,7 +386,7 @@ internal class UsernameEditViewModel private constructor(private val mode: Usern companion object { private val TAG = Log.tag(UsernameEditViewModel::class.java) - private const val NICKNAME_PUBLISHER_DEBOUNCE_TIMEOUT_MILLIS: Long = 1000 + private const val NICKNAME_PUBLISHER_DEBOUNCE_TIMEOUT_MILLIS: Long = 500 private fun mapNicknameError(invalidReason: InvalidReason): UsernameStatus { return when (invalidReason) {