mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Change mobile debounce time for validate username
This commit is contained in:
parent
154b619d2d
commit
b9cab3a875
2 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ class LoginViewModel @Inject constructor(
|
|||
validateUsernameJob?.cancel()
|
||||
|
||||
validateUsernameJob = viewModelScope.launch {
|
||||
delay(500)
|
||||
delay(2000)
|
||||
|
||||
// Check the username requirements first
|
||||
if (potentialUsername.isEmpty()) {
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ import Views
|
|||
potentialUsername = profile.username
|
||||
|
||||
$potentialUsername
|
||||
.debounce(for: .seconds(0.5), scheduler: DispatchQueue.main)
|
||||
.debounce(for: .seconds(2.0), scheduler: DispatchQueue.main)
|
||||
.sink(receiveValue: { [weak self] username in
|
||||
self?.validateUsername(username: username, dataService: dataService)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue