From 73bc3c2617a94398558886748873fea959f7635f Mon Sep 17 00:00:00 2001 From: kosyak Date: Sun, 17 Dec 2023 23:54:58 +0100 Subject: [PATCH] temporary disable domian jid sanity check --- .../eu/siacs/conversations/ui/ConferenceDetailsActivity.java | 1 - src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java index 8967bfc43..89c5f9a52 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ConferenceDetailsActivity.java @@ -574,7 +574,6 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers this.binding.mucJid.setText(mConversation.getJid().asBareJid().toEscapedString()); binding.mucJid.setOnClickListener(v -> ShareUtil.copyJidToClipboard(ConferenceDetailsActivity.this, mConversation.getJid().asBareJid())); - if (printableValue(subject)) { SpannableStringBuilder spannable = new SpannableStringBuilder(subject); StylingHelper.format(spannable, this.binding.mucSubject.getCurrentTextColor()); diff --git a/src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java b/src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java index dcf67f97b..f0793f743 100644 --- a/src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java +++ b/src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java @@ -264,12 +264,12 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected } if (!issuedWarning && sanityCheckJid != SanityCheck.NO) { - if (contactJid.isDomainJid()) { + /*if (contactJid.isDomainJid()) { binding.jidLayout.setError(getActivity().getString(R.string.this_looks_like_a_domain)); dialog.getButton(AlertDialog.BUTTON_POSITIVE).setText(R.string.add_anway); issuedWarning = true; return; - } + } */ if (sanityCheckJid != SanityCheck.ALLOW_MUC && suspiciousSubDomain(contactJid.getDomain().toEscapedString())) { binding.jidLayout.setError(getActivity().getString(R.string.this_looks_like_channel)); dialog.getButton(AlertDialog.BUTTON_POSITIVE).setText(R.string.add_anway);