File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/src/main/kotlin/org/fossify/messages/receivers Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import com.klinker.android.send_message.MmsReceivedReceiver
77import org.fossify.commons.extensions.baseConfig
88import org.fossify.commons.extensions.getMyContactsCursor
99import org.fossify.commons.extensions.isNumberBlocked
10- import org.fossify.commons.extensions.normalizePhoneNumber
1110import org.fossify.commons.extensions.showErrorToast
1211import org.fossify.commons.helpers.SimpleContactsHelper
1312import org.fossify.commons.helpers.ensureBackgroundThread
@@ -27,8 +26,7 @@ import org.fossify.messages.models.Message
2726class 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)
You can’t perform that action at this time.
0 commit comments