From be358b77d65441dff290ceecb68e27f448e8811e Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Wed, 3 Dec 2014 10:34:05 +0100 Subject: set nick and autojoin=true for new bookmarks --- .../java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/eu/siacs') diff --git a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java index c6a38712..2e36c545 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java @@ -264,6 +264,10 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers protected void saveAsBookmark() { Account account = mConversation.getAccount(); Bookmark bookmark = new Bookmark(account, mConversation.getContactJid().toBareJid()); + if (!mConversation.getContactJid().isBareJid()) { + bookmark.setNick(mConversation.getContactJid().getResourcepart()); + } + bookmark.setAutojoin(true); account.getBookmarks().add(bookmark); xmppConnectionService.pushBookmarks(account); mConversation.setBookmark(bookmark); -- cgit v1.2.3