diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-07-22 15:31:00 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-07-22 15:31:00 +0200 |
commit | f7634a85be516feef753bdb32fed8df7da1573ed (patch) | |
tree | f132ac034bdcfbdea241586dc1d9790cdf44d931 /src/main/java/eu/siacs/conversations/entities | |
parent | db05d264334b548ce2f307d614e39aabd775bb4f (diff) |
treat private, non-anonymous mucs like 1:1 chats notification wise
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/entities/Conversation.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/entities/Conversation.java b/src/main/java/eu/siacs/conversations/entities/Conversation.java index 2efd8a29..6d99e358 100644 --- a/src/main/java/eu/siacs/conversations/entities/Conversation.java +++ b/src/main/java/eu/siacs/conversations/entities/Conversation.java @@ -519,6 +519,13 @@ public class Conversation extends AbstractEntity implements Blockable { return getContact().getOtrFingerprints().contains(getOtrFingerprint()); } + /** + * short for is Private and Non-anonymous + */ + public boolean isPnNA() { + return mode == MODE_SINGLE || (getMucOptions().membersOnly() && getMucOptions().nonanonymous()); + } + public synchronized MucOptions getMucOptions() { if (this.mucOptions == null) { this.mucOptions = new MucOptions(this); |