Relaxed can block junk

pull/206/head
M66B 3 years ago
parent 32d4202f81
commit bac4f41734

@ -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();

@ -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();

Loading…
Cancel
Save