aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-10-06 22:55:39 +0200
committerChristian Schneppe <christian@pix-art.de>2017-10-06 22:55:39 +0200
commitb17ee20a5e5898b91a090644708351af604555d0 (patch)
tree0fa0781a403d5897fef5985a470c050cb54097ff /src
parentfa5082e6827b90fb11bf5917f9bbb388f8fe88cf (diff)
correct hasEnabledAccounts
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java9
1 files changed, 9 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 ae22d205e..8293d39f0 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -2497,6 +2497,15 @@ public class XmppConnectionService extends Service {
}
}
+ private boolean hasEnabledAccounts() {
+ for(Account account : this.accounts) {
+ if (!account.isOptionSet(Account.OPTION_DISABLED)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
public void renameInMuc(final Conversation conversation, final String nick, final UiCallback<Conversation> callback) {
final MucOptions options = conversation.getMucOptions();
final Jid joinJid = options.createJoinJid(nick);