Relaxed can block junk

This commit is contained in:
M66B 2021-09-26 07:47:16 +02:00
parent 32d4202f81
commit bac4f41734
2 changed files with 2 additions and 2 deletions

View File

@ -4581,7 +4581,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean canBlock = false;
if (message.from != null && message.from.length > 0) {
String email = ((InternetAddress) message.from[0]).getAddress();
canBlock = !TextUtils.isEmpty(email) && Helper.EMAIL_ADDRESS.matcher(email).matches();
canBlock = !TextUtils.isEmpty(email);
}
Bundle aargs = new Bundle();

View File

@ -2482,7 +2482,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
boolean canBlock = false;
if (message.from != null && message.from.length > 0) {
String email = ((InternetAddress) message.from[0]).getAddress();
canBlock = !TextUtils.isEmpty(email) && Helper.EMAIL_ADDRESS.matcher(email).matches();
canBlock = !TextUtils.isEmpty(email);
}
Bundle aargs = new Bundle();