mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-25 12:17:22 +00:00
Trim text before performing username search.
This commit is contained in:
@@ -59,7 +59,7 @@ class FindByViewModel(
|
||||
|
||||
@WorkerThread
|
||||
private fun performUsernameLookup(): FindByResult {
|
||||
val username = state.value.userEntry
|
||||
val username = state.value.userEntry.trim()
|
||||
|
||||
if (!UsernameUtil.isValidUsernameForSearch(username)) {
|
||||
return FindByResult.InvalidEntry
|
||||
|
||||
Reference in New Issue
Block a user