diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-08-30 20:47:14 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-08-30 20:47:14 +0200 |
commit | 8b4e383d0f85586d57fa96bc8a6802c1ff2e455e (patch) | |
tree | c3bf3d8ead09a099880987c4446775e52ede3ce6 /src/main/java/de/pixart/messenger/services/XmppConnectionService.java | |
parent | 73b65ef7e161e670da6c6e960917317ee96fcf77 (diff) |
special treatment for presence errors known to be mucs
Diffstat (limited to 'src/main/java/de/pixart/messenger/services/XmppConnectionService.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index f4e0bf877..896061457 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -568,6 +568,11 @@ public class XmppConnectionService extends Service { return find(getConversations(), account, jid); } + public boolean isMuc(final Account account, final Jid jid) { + final Conversation c = find(account, jid); + return c != null && c.getMode() == Conversational.MODE_MULTI; + } + public void search(List<String> term, OnSearchResultsAvailable onSearchResultsAvailable) { MessageSearchTask.search(this, term, onSearchResultsAvailable); } |