mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
Changes default behaviour for CLASS 0 messages
"Flash" messages are no longer handled by TS. Sorry for the multiple pulls -- previous request had a cut+paste typo.
This commit is contained in:
parent
d8cd09d46b
commit
4ced1a0f18
@ -31,10 +31,16 @@ public class SmsListener extends BroadcastReceiver {
|
|||||||
private static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
|
private static final String SMS_RECEIVED_ACTION = "android.provider.Telephony.SMS_RECEIVED";
|
||||||
|
|
||||||
private boolean isExemption(SmsMessage message, String messageBody) {
|
private boolean isExemption(SmsMessage message, String messageBody) {
|
||||||
// ignore OTP messages from Sparebank1 (Norwegian bank)
|
|
||||||
|
// ignore CLASS0 ("flash") messages
|
||||||
|
if (message.getMessageClass() == SmsMessage.MessageClass.CLASS_0)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
// ignore OTP messages from Sparebank1 (Norwegian bank)
|
||||||
if (messageBody.startsWith("Sparebank1://otp?")) {
|
if (messageBody.startsWith("Sparebank1://otp?")) {
|
||||||
return (true);
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sprint Visual Voicemail
|
// Sprint Visual Voicemail
|
||||||
return
|
return
|
||||||
message.getOriginatingAddress().length() < 7 &&
|
message.getOriginatingAddress().length() < 7 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user