mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
Support matching to account for telcos inserting SMS prefixes.
// FREEBIE Fixes #1944
This commit is contained in:
parent
f818cfa32b
commit
299dd86c77
@ -128,7 +128,7 @@ public class SmsListener extends BroadcastReceiver {
|
|||||||
if (messageBody == null)
|
if (messageBody == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (messageBody.matches("Your TextSecure verification code: [0-9]{3,4}-[0-9]{3,4}") &&
|
if (messageBody.matches(".*Your TextSecure verification code: [0-9]{3,4}-[0-9]{3,4}") &&
|
||||||
TextSecurePreferences.isVerifying(context))
|
TextSecurePreferences.isVerifying(context))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user