trim xmpp address after user input
This commit is contained in:
parent
f4be142e4d
commit
63501adc45
|
@ -170,7 +170,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
|
|||
}
|
||||
final Jid contactJid;
|
||||
try {
|
||||
contactJid = Jid.ofEscaped(binding.jid.getText().toString());
|
||||
contactJid = Jid.ofEscaped(binding.jid.getText().toString().trim());
|
||||
} catch (final IllegalArgumentException e) {
|
||||
binding.jidLayout.setError(getActivity().getString(R.string.invalid_jid));
|
||||
return;
|
||||
|
|
|
@ -1054,7 +1054,7 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
|||
if (account == null) {
|
||||
return;
|
||||
}
|
||||
final String input = jid.getText().toString();
|
||||
final String input = jid.getText().toString().trim();
|
||||
Jid conferenceJid;
|
||||
try {
|
||||
conferenceJid = Jid.ofEscaped(input);
|
||||
|
|
Loading…
Reference in a new issue