mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Simplification
This commit is contained in:
@@ -153,7 +153,8 @@ public class EntityIdentity {
|
||||
|
||||
// User
|
||||
if (TextUtils.isEmpty(sender_extra_regex)) {
|
||||
String user = (cother[0].contains("+") ? cother[0].split("\\+")[0] : cother[0]);
|
||||
int plus = cother[0].indexOf('+');
|
||||
String user = (plus < 0 ? cother[0] : cother[0].substring(0, plus));
|
||||
if (user.equalsIgnoreCase(cemail[0]))
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user