From bdc1d35e95dde8befcd263657820ea4bcf48c088 Mon Sep 17 00:00:00 2001 From: yamilmedina Date: Thu, 21 Sep 2023 15:21:24 +0200 Subject: [PATCH] fix: test cov --- .../logic/feature/publicuser/search/SearchKnownUsersUseCase.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {