Skip to content

Commit a57d873

Browse files
committed
fix: disable address normalization when checking blocked MMS senders
This is more accurate, but it shouldn't alter the blocking behavior, as the system handles that.
1 parent 1e3f5e5 commit a57d873

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/src/main/kotlin/org/fossify/messages/receivers/MmsReceiver.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import com.klinker.android.send_message.MmsReceivedReceiver
77
import org.fossify.commons.extensions.baseConfig
88
import org.fossify.commons.extensions.getMyContactsCursor
99
import org.fossify.commons.extensions.isNumberBlocked
10-
import org.fossify.commons.extensions.normalizePhoneNumber
1110
import org.fossify.commons.extensions.showErrorToast
1211
import org.fossify.commons.helpers.SimpleContactsHelper
1312
import org.fossify.commons.helpers.ensureBackgroundThread
@@ -27,8 +26,7 @@ import org.fossify.messages.models.Message
2726
class MmsReceiver : MmsReceivedReceiver() {
2827

2928
override fun isAddressBlocked(context: Context, address: String): Boolean {
30-
val normalizedAddress = address.normalizePhoneNumber()
31-
if (context.isNumberBlocked(normalizedAddress)) return true
29+
if (context.isNumberBlocked(address)) return true
3230
if (context.baseConfig.blockUnknownNumbers) {
3331
context.getMyContactsCursor(favoritesOnly = false, withPhoneNumbersOnly = true).use {
3432
val isKnownContact = SimpleContactsHelper(context).existsSync(address, it)

0 commit comments

Comments
 (0)