validate conference jid on input
This commit is contained in:
parent
198a7db954
commit
dc29cf27a3
|
@ -1017,7 +1017,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
||||||
final String input = jid.getText().toString();
|
final String input = jid.getText().toString();
|
||||||
Jid conferenceJid;
|
Jid conferenceJid;
|
||||||
try {
|
try {
|
||||||
conferenceJid = Jid.of(input);
|
conferenceJid = Jid.ofEscaped(input);
|
||||||
} catch (final IllegalArgumentException e) {
|
} catch (final IllegalArgumentException e) {
|
||||||
final XmppUri xmppUri = new XmppUri(input);
|
final XmppUri xmppUri = new XmppUri(input);
|
||||||
if (xmppUri.isValidJid() && xmppUri.isAction(XmppUri.ACTION_JOIN)) {
|
if (xmppUri.isValidJid() && xmppUri.isAction(XmppUri.ACTION_JOIN)) {
|
||||||
|
|
Loading…
Reference in a new issue