mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 03:32:15 -05:00
deal with user entering full jids in join conference dialog
This commit is contained in:
parent
be9af442ef
commit
00c74503ab
@ -997,8 +997,10 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
conversation.setAccount(account);
|
conversation.setAccount(account);
|
||||||
if (muc) {
|
if (muc) {
|
||||||
conversation.setMode(Conversation.MODE_MULTI);
|
conversation.setMode(Conversation.MODE_MULTI);
|
||||||
|
conversation.setContactJid(jid);
|
||||||
} else {
|
} else {
|
||||||
conversation.setMode(Conversation.MODE_SINGLE);
|
conversation.setMode(Conversation.MODE_SINGLE);
|
||||||
|
conversation.setContactJid(jid.toBareJid());
|
||||||
}
|
}
|
||||||
conversation.setNextEncryption(-1);
|
conversation.setNextEncryption(-1);
|
||||||
conversation.addAll(0, databaseBackend.getMessages(conversation, Config.PAGE_SIZE));
|
conversation.addAll(0, databaseBackend.getMessages(conversation, Config.PAGE_SIZE));
|
||||||
@ -1015,7 +1017,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
|
|||||||
conversation = new Conversation(conversationName, account, jid,
|
conversation = new Conversation(conversationName, account, jid,
|
||||||
Conversation.MODE_MULTI);
|
Conversation.MODE_MULTI);
|
||||||
} else {
|
} else {
|
||||||
conversation = new Conversation(conversationName, account, jid,
|
conversation = new Conversation(conversationName, account, jid.toBareJid(),
|
||||||
Conversation.MODE_SINGLE);
|
Conversation.MODE_SINGLE);
|
||||||
}
|
}
|
||||||
this.databaseBackend.createConversation(conversation);
|
this.databaseBackend.createConversation(conversation);
|
||||||
|
@ -448,8 +448,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
|
|||||||
if (account.hasBookmarkFor(conferenceJid)) {
|
if (account.hasBookmarkFor(conferenceJid)) {
|
||||||
jid.setError(getString(R.string.bookmark_already_exists));
|
jid.setError(getString(R.string.bookmark_already_exists));
|
||||||
} else {
|
} else {
|
||||||
final Bookmark bookmark = new Bookmark(account,
|
final Bookmark bookmark = new Bookmark(account,conferenceJid.toBareJid());
|
||||||
conferenceJid);
|
|
||||||
bookmark.setAutojoin(true);
|
bookmark.setAutojoin(true);
|
||||||
account.getBookmarks().add(bookmark);
|
account.getBookmarks().add(bookmark);
|
||||||
xmppConnectionService
|
xmppConnectionService
|
||||||
|
Loading…
Reference in New Issue
Block a user