set autojoin=true after following invite
This commit is contained in:
parent
b96ef1e591
commit
4df8343b05
File diff suppressed because it is too large
Load Diff
|
@ -225,13 +225,13 @@ public class ChannelDiscoveryActivity extends XmppActivity implements MenuItem.O
|
||||||
final Conversation conversation = xmppConnectionService.findOrCreateConversation(account, result.getRoom(), true, true, true);
|
final Conversation conversation = xmppConnectionService.findOrCreateConversation(account, result.getRoom(), true, true, true);
|
||||||
Bookmark bookmark = conversation.getBookmark();
|
Bookmark bookmark = conversation.getBookmark();
|
||||||
if (bookmark != null) {
|
if (bookmark != null) {
|
||||||
if (!bookmark.autojoin() && syncAutojoin) {
|
if (!bookmark.autojoin() && syncAutoJoin) {
|
||||||
conversation.getBookmark().setAutojoin(true);
|
bookmark.setAutojoin(true);
|
||||||
xmppConnectionService.createBookmark(account, bookmark);
|
xmppConnectionService.createBookmark(account, bookmark);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bookmark = new Bookmark(account, conversation.getJid().asBareJid());
|
bookmark = new Bookmark(account, conversation.getJid().asBareJid());
|
||||||
bookmark.setAutojoin(syncAutojoin);
|
bookmark.setAutojoin(syncAutoJoin);
|
||||||
xmppConnectionService.createBookmark(account, bookmark);
|
xmppConnectionService.createBookmark(account, bookmark);
|
||||||
}
|
}
|
||||||
switchToConversation(conversation);
|
switchToConversation(conversation);
|
||||||
|
|
|
@ -1880,7 +1880,7 @@ public class XmppConnection implements Runnable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean bookmarks2() {
|
public boolean bookmarks2() {
|
||||||
return Config.USE_BOOKMARKS2 || hasDiscoFeature(account.getJid().asBareJid(), Namespace.BOOKMARKS2_COMPAT);
|
return Config.USE_BOOKMARKS2 /* || hasDiscoFeature(account.getJid().asBareJid(), Namespace.BOOKMARKS2_COMPAT)*/;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue