aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/services
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-07-11 19:48:41 +0200
committeriNPUTmice <daniel@gultsch.de>2014-07-11 19:48:41 +0200
commit610df2eddc06d9b7cbe0157a2f101eb9eaef76d0 (patch)
tree93fa18809c9b2cb606006e36801b513d81575bd8 /src/eu/siacs/conversations/services
parent690ee4988eda2c23830f514d31302b2837bd04f4 (diff)
added join conference dialog
Diffstat (limited to 'src/eu/siacs/conversations/services')
-rw-r--r--src/eu/siacs/conversations/services/XmppConnectionService.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java
index dcdd21dd..259a2b80 100644
--- a/src/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/eu/siacs/conversations/services/XmppConnectionService.java
@@ -1529,4 +1529,17 @@ public class XmppConnectionService extends Service {
}
return hosts;
}
+
+ public List<String> getKnownConferenceHosts() {
+ ArrayList<String> mucServers = new ArrayList<String>();
+ for (Account account : accounts) {
+ if (account.getXmppConnection() != null) {
+ String server = account.getXmppConnection().getMucServer();
+ if (server != null) {
+ mucServers.add(server);
+ }
+ }
+ }
+ return mucServers;
+ }
}