From 839178b26914703ae36634ed54ef5fd1cbda2ea3 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 4 May 2017 11:28:54 +0200 Subject: [PATCH] suggest bookmarked conferences servers in join conference dialog --- .../siacs/conversations/services/XmppConnectionService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 38f0150d..c61a5217 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -3500,6 +3500,12 @@ public class XmppConnectionService extends Service { if (server != null && !mucServers.contains(server)) { mucServers.add(server); } + for(Bookmark bookmark : account.getBookmarks()) { + final String s = bookmark.getJid().getDomainpart(); + if (s != null && !mucServers.contains(s)) { + mucServers.add(s); + } + } } } return mucServers;