mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 18:53:40 +00:00
Fix for Sparebank1 OTP application
Now in its own branch. Dear $deity, hope this is correct.
This commit is contained in:
parent
b89a72dbeb
commit
46fb1b1db9
@ -31,6 +31,10 @@ public class SmsListener extends BroadcastReceiver {
|
||||
private static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
|
||||
|
||||
private boolean isExemption(SmsMessage message, String messageBody) {
|
||||
// ignore OTP messages from Sparebank1 (Norwegian bank)
|
||||
if (messageBody.startsWith("Sparebank1://otp?")) {
|
||||
return (true);
|
||||
}
|
||||
// Sprint Visual Voicemail
|
||||
return
|
||||
message.getOriginatingAddress().length() < 7 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user