mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 17:16:53 +00:00
add unit tests for SmsSender
This commit is contained in:
1 parent
2a8806ec2e
commit
1f24c913a6
2 files changed
+43
-1
No files matched your search
@@ -21,7 +21,7 @@ public class SmsSender {
|
||||
public void deliverSmsVerification(String destination, Optional<String> clientType, String verificationCode) {
|
||||
// Fix up mexico numbers to 'mobile' format just for SMS delivery.
|
||||
if (destination.startsWith("+52") && !destination.startsWith("+521")) {
|
||||
destination = "+521" + destination.substring(3);
|
||||
destination = "+521" + destination.substring("+52".length());
|
||||
}
|
||||
|
||||
twilioSender.deliverSmsVerification(destination, clientType, verificationCode);
|
||||
|
||||
Reference in new issue
Block a user