diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/publicuser/search/SearchKnownUsersUseCase.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/publicuser/search/SearchKnownUsersUseCase.kt index b108b49d081..13bb2a46908 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/publicuser/search/SearchKnownUsersUseCase.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/publicuser/search/SearchKnownUsersUseCase.kt @@ -60,7 +60,7 @@ internal class SearchKnownUsersUseCaseImpl( val sanitizedSearchQuery = searchQuery.lowercase() return if (isUserLookingForHandle(sanitizedSearchQuery)) { searchUserRepository.searchKnownUsersByHandle( - handle = sanitizedSearchQuery.substringAfter('@').substringBeforeLast('@'), + handle = sanitizedSearchQuery.substringAfter("@").substringBeforeLast("@"), searchUsersOptions = searchUsersOptions ) } else {