Skip to content

Commit

Permalink
[messages] always normalize phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
capcom6 committed Feb 11, 2024
1 parent 12903df commit 529d8e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class MessagesService(
false -> it
}
val normalizedPhoneNumber = when (params.skipPhoneValidation) {
true -> phoneNumber
true -> phoneNumber.filter { it.isDigit() || it == '+' }
false -> PhoneHelper.filterPhoneNumber(phoneNumber, countryCode ?: "RU")
}

Expand Down

0 comments on commit 529d8e0

Please sign in to comment.