respect autojoin setting on newly created bookmarks as well
This commit is contained in:
parent
1e7647e385
commit
3978c04782
|
@ -426,7 +426,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
|
||||||
jid.setError(getString(R.string.bookmark_already_exists));
|
jid.setError(getString(R.string.bookmark_already_exists));
|
||||||
} else {
|
} else {
|
||||||
final Bookmark bookmark = new Bookmark(account, conferenceJid.toBareJid());
|
final Bookmark bookmark = new Bookmark(account, conferenceJid.toBareJid());
|
||||||
bookmark.setAutojoin(true);
|
bookmark.setAutojoin(getPreferences().getBoolean("autojoin", true));
|
||||||
String nick = conferenceJid.getResourcepart();
|
String nick = conferenceJid.getResourcepart();
|
||||||
if (nick != null && !nick.isEmpty()) {
|
if (nick != null && !nick.isEmpty()) {
|
||||||
bookmark.setNick(nick);
|
bookmark.setNick(nick);
|
||||||
|
|
Loading…
Reference in a new issue