temporary disable domian jid sanity check
This commit is contained in:
parent
7f7e4b10a4
commit
73bc3c2617
|
@ -574,7 +574,6 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
||||||
this.binding.mucJid.setText(mConversation.getJid().asBareJid().toEscapedString());
|
this.binding.mucJid.setText(mConversation.getJid().asBareJid().toEscapedString());
|
||||||
binding.mucJid.setOnClickListener(v -> ShareUtil.copyJidToClipboard(ConferenceDetailsActivity.this, mConversation.getJid().asBareJid()));
|
binding.mucJid.setOnClickListener(v -> ShareUtil.copyJidToClipboard(ConferenceDetailsActivity.this, mConversation.getJid().asBareJid()));
|
||||||
|
|
||||||
|
|
||||||
if (printableValue(subject)) {
|
if (printableValue(subject)) {
|
||||||
SpannableStringBuilder spannable = new SpannableStringBuilder(subject);
|
SpannableStringBuilder spannable = new SpannableStringBuilder(subject);
|
||||||
StylingHelper.format(spannable, this.binding.mucSubject.getCurrentTextColor());
|
StylingHelper.format(spannable, this.binding.mucSubject.getCurrentTextColor());
|
||||||
|
|
|
@ -264,12 +264,12 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!issuedWarning && sanityCheckJid != SanityCheck.NO) {
|
if (!issuedWarning && sanityCheckJid != SanityCheck.NO) {
|
||||||
if (contactJid.isDomainJid()) {
|
/*if (contactJid.isDomainJid()) {
|
||||||
binding.jidLayout.setError(getActivity().getString(R.string.this_looks_like_a_domain));
|
binding.jidLayout.setError(getActivity().getString(R.string.this_looks_like_a_domain));
|
||||||
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setText(R.string.add_anway);
|
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setText(R.string.add_anway);
|
||||||
issuedWarning = true;
|
issuedWarning = true;
|
||||||
return;
|
return;
|
||||||
}
|
} */
|
||||||
if (sanityCheckJid != SanityCheck.ALLOW_MUC && suspiciousSubDomain(contactJid.getDomain().toEscapedString())) {
|
if (sanityCheckJid != SanityCheck.ALLOW_MUC && suspiciousSubDomain(contactJid.getDomain().toEscapedString())) {
|
||||||
binding.jidLayout.setError(getActivity().getString(R.string.this_looks_like_channel));
|
binding.jidLayout.setError(getActivity().getString(R.string.this_looks_like_channel));
|
||||||
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setText(R.string.add_anway);
|
dialog.getButton(AlertDialog.BUTTON_POSITIVE).setText(R.string.add_anway);
|
||||||
|
|
Loading…
Reference in a new issue