aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-12-03 10:34:05 +0100
committeriNPUTmice <daniel@gultsch.de>2014-12-03 10:34:05 +0100
commitbe358b77d65441dff290ceecb68e27f448e8811e (patch)
tree77f008e332e9324d12ba023e6d2afc912ca49537 /src/main/java
parentc2736371560ea377e199cd4b8ffe722e84045972 (diff)
set nick and autojoin=true for new bookmarks
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java4
1 files changed, 4 insertions, 0 deletions
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);