respect autojoin setting on newly created bookmarks as well

This commit is contained in:
Daniel Gultsch 2016-02-01 14:22:52 +01:00
parent 1e7647e385
commit 3978c04782
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
jid.setError(getString(R.string.bookmark_already_exists));
} else {
final Bookmark bookmark = new Bookmark(account, conferenceJid.toBareJid());
bookmark.setAutojoin(true);
bookmark.setAutojoin(getPreferences().getBoolean("autojoin", true));
String nick = conferenceJid.getResourcepart();
if (nick != null && !nick.isEmpty()) {
bookmark.setNick(nick);