mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
8b223b3055
commit
aa473c9204
|
@ -19,6 +19,8 @@ package eu.faircode.email;
|
|||
Copyright 2018-2022 by Marcel Bokhorst (M66B)
|
||||
*/
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class TupleThreadInfo {
|
||||
|
@ -28,11 +30,11 @@ public class TupleThreadInfo {
|
|||
public String inreplyto;
|
||||
|
||||
public boolean isSelf(String msgid) {
|
||||
return Objects.equals(this.msgid, msgid);
|
||||
return !TextUtils.isEmpty(this.msgid) && this.msgid.equals(msgid);
|
||||
}
|
||||
|
||||
public boolean isReferenced(String msgid) {
|
||||
return Objects.equals(this.inreplyto, msgid);
|
||||
return !TextUtils.isEmpty(this.inreplyto) && this.inreplyto.equals(msgid);
|
||||
}
|
||||
|
||||
public boolean isReferencing(String msgid) {
|
||||
|
|
Loading…
Reference in New Issue