diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Contact.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Contact.java b/src/main/java/de/pixart/messenger/entities/Contact.java index 3872ceecb..8112c4a3c 100644 --- a/src/main/java/de/pixart/messenger/entities/Contact.java +++ b/src/main/java/de/pixart/messenger/entities/Contact.java @@ -515,7 +515,11 @@ public class Contact implements ListItem, Blockable { } public boolean isSelf() { - return account.getJid().asBareJid().equals(getJid().asBareJid()); + return account.getJid().asBareJid().equals(jid.asBareJid()); + } + + public boolean isOwnServer() { + return account.getJid().getDomain().equals(jid.getDomain()); } public void setCommonName(String cn) { |