diff --git a/CHANGELOG-upstream.md b/CHANGELOG-upstream.md index 080401ec6..eb5a84125 100644 --- a/CHANGELOG-upstream.md +++ b/CHANGELOG-upstream.md @@ -1,6 +1,6 @@ # Delta Chat Android Changelog -## v2.46.0 +## v2.47.0 2026-03 * Allow to set chat description @@ -19,7 +19,7 @@ * Fix: avoid "reply privately" not quoting the selected message sometimes * Fix: properly hide the calls button * Some more bug fixes and updated translations -* Update to core 2.46.0 +* Update to core 2.47.0 ## v2.43.0 2026-02 diff --git a/build.gradle b/build.gradle index d8805dae0..7251cc9c7 100644 --- a/build.gradle +++ b/build.gradle @@ -34,8 +34,8 @@ android { useLibrary 'org.apache.http.legacy' defaultConfig { - versionCode 30000739 - versionName "2.46.1" + versionCode 30000740 + versionName "2.47.0" applicationId "chat.delta.lite" multiDexEnabled true diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt index dd4a43cbd..ef4c51c39 100644 --- a/fastlane/metadata/android/en-US/full_description.txt +++ b/fastlane/metadata/android/en-US/full_description.txt @@ -1,6 +1,8 @@ ArcaneChat is a decentralized and secure instant messenger that is easy to use for friends and family. -• Anonymous. Instant onboarding without a phone number, e-mail or other private data. +• Private. Instant on-boarding without a phone number or other private data. + +• Friends & Family: Only chat with people you know. Unknown users cannot message or follow you without mutual consent. • Flexible. Supports multiple chat profiles and is easy to setup on multiple devices. diff --git a/jni/deltachat-core-rust b/jni/deltachat-core-rust index 0d8e13c1e..0952e95e9 160000 --- a/jni/deltachat-core-rust +++ b/jni/deltachat-core-rust @@ -1 +1 @@ -Subproject commit 0d8e13c1e053e3340735ef0a3477c399f1042047 +Subproject commit 0952e95e956af79417d6acb076947880edf29560 diff --git a/src/main/assets/help/cs/help.html b/src/main/assets/help/cs/help.html index 128035f15..6314f9bc5 100644 --- a/src/main/assets/help/cs/help.html +++ b/src/main/assets/help/cs/help.html @@ -1043,22 +1043,26 @@ Relays are operated by different groups and people.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
Du kannst ein Relay hinzufügen, indem du einen QR-Code scannst, -z.B. von https://chatmail.at/relays. -Bei mehreren Relays, empfängst du die Nachrichten von allen Relays.
+Du kannst ein Relay hinzufügen, indem du einen QR-Code scannst, z.B. von chatmail.at/relays. Bei mehreren Relays, empfängst du die Nachrichten von allen Relays. Deine Kontakte lernen deine Relays automatisch, sobald du ihnen schreibst.
Standard legt das Relay fest, an das deine Chatpartner zukünftig Nachrichten senden.
+Tippe ein Relay an, um es Zum Senden zu verwenden
Wenn du ein Relay entfernst, -stelle sicher, dass ein anderes Standard-Relay ausreichend lange verwendet wurde. -Andernfalls erreichen dich keine Nachrichten von deinen Kontakten. -Im Zweifelsfall entferne das Relay später.
+Wenn du ein Relay entfernst, können Kontakte, die nur dieses Relay kennen, dich nicht erreichen, bis du ihnen wieder schreibst. Um erreichbar zu bleiben, wähle Vor Kontakten verstecken im Bestätigungsdialog anstelle das Relay direkt zu löschen.
+Um ein verstecktes Relay wieder anzuzeigen tippe es an.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
Puoi aggiungere un ripetitore scansionando il suo codice QR;https://chatmail.at/relays ne mostra alcuni noti. -Se hai più ripetitori, riceverai messaggi su tutti.
+You can add a relay by scanning its QR code; +chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.
L’opzione predefinita definisce quella a cui i tuoi partner di chat invieranno messaggi futuri.
+Tap on a relay to set it as used for sending.
Se rimuovi un ripetitore, -assicurati che un altro ripetitore predefinito sia stato utilizzato per un periodo di tempo sufficiente. -In caso contrario, i messaggi dei tuoi interlocutori di chat non ti arriveranno.In caso di dubbio, rimuovilo in seguito.
+If you remove a relay, +contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away.
+To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
Вы можете добавить релей, отсканировав его QR-код; -https://chatmail.at/relays содержит список известных релеев. -Если у вас несколько релеев, вы будете получать сообщения на все из них.
+You can add a relay by scanning its QR code; +chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.
По умолчанию определяет релей, на который ваши собеседники будут отправлять будущие сообщения.
+Tap on a relay to set it as used for sending.
Если вы удаляете релей, -убедитесь, что другой релей по умолчанию использовался в течение достаточного количества времени. -В противном случае сообщения от ваших собеседников не будут доходить до вас. -Если сомневаетесь, удалите его позже.
+If you remove a relay, +contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away.
+To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
By default, after installation, a relay is automatically set up, so you do not need to care about that. However, if you want to, -you can configure relays at At Settings → Advanced → Relays:
+you can configure relays at Settings → Advanced → Relays:You can add a relay by scanning its QR code; -https://chatmail.at/relays shows some known ones. -If you have multiple relays, you will receive messages on all of them.
+chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.The default defines the one where your chat partners send future messages to.
+Tap on a relay to set it as used for sending.
If you remove a relay, -make sure another default relay was used for a sufficient amount of time. -Otherwise, messages from your chat partners won’t reach you. -If in doubt, remove later.
+contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away. +To show a hidden relay again, tap on it.
可以在“设置 → 高级 → 中继服务器”中配置:
-https://chatmail.at/relays 显示了一些已知的中继服务器。
- -如果您添加了多个中继,您将在所有中继上收到消息。
-默认地址确定了聊天伙伴今后发送消息的目标地址。
+You can add a relay by scanning its QR code; +chatmail.at/relays shows some known ones. +If you have multiple relays, you will receive messages on all of them. +Contacts learn your current relays automatically when you message them.
如果您移除某个中继服务器,
+Tap on a relay to set it as used for sending.
+If you remove a relay, +contacts who only know this relay may not reach you until you message them again. +To stay reachable in the meantime, choose Hide from Contacts in the confirmation dialog +instead of removing it right away.
+To show a hidden relay again, tap on it.
请确保已使用另一个默认中继服务器足够长的时间。
- -否则,您将无法收到聊天伙伴的消息。
- -如有问题,请稍后再移除。
-有关中继服务器的更多细节和未来可能性、 您可以关注 论坛 中的讨论。
diff --git a/src/main/java/org/thoughtcrime/securesms/WebViewActivity.java b/src/main/java/org/thoughtcrime/securesms/WebViewActivity.java index 78587dc12..33bc2ce31 100644 --- a/src/main/java/org/thoughtcrime/securesms/WebViewActivity.java +++ b/src/main/java/org/thoughtcrime/securesms/WebViewActivity.java @@ -22,6 +22,8 @@ import androidx.webkit.WebSettingsCompat; import androidx.webkit.WebViewFeature; import chat.delta.rpc.types.SecurejoinSource; import java.net.IDN; +import java.util.regex.Matcher; +import java.util.regex.Pattern; import org.thoughtcrime.securesms.qr.QrCodeHandler; import org.thoughtcrime.securesms.util.DynamicTheme; import org.thoughtcrime.securesms.util.IntentUtils; @@ -31,6 +33,9 @@ import org.thoughtcrime.securesms.util.ViewUtil; public class WebViewActivity extends PassphraseRequiredActionBarActivity implements SearchView.OnQueryTextListener, WebView.FindListener { private static final String TAG = WebViewActivity.class.getSimpleName(); + // Regex to extract the host from a URL for IDN conversion. + private static final Pattern URL_PATTERN = + Pattern.compile("^((?:[a-zA-Z0-9]+://)?)([^/?#]+)(.*)$"); protected WebView webView; @@ -320,9 +325,17 @@ public class WebViewActivity extends PassphraseRequiredActionBarActivity } if (shouldAskToOpenLink()) { + String displayUrl; + try { + Matcher m = URL_PATTERN.matcher(url); + displayUrl = m.find() ? m.group(1) + IDN.toASCII(m.group(2)) + m.group(3) : url; + } catch (IllegalArgumentException e) { + // IDN.toASCII() failed (e.g. string too long), fall back to raw url + displayUrl = url; + } new AlertDialog.Builder(this) .setTitle(R.string.open_url_confirmation) - .setMessage(IDN.toASCII(url)) + .setMessage(displayUrl) .setNeutralButton(R.string.cancel, null) .setPositiveButton(R.string.open, (d, w) -> IntentUtils.showInBrowser(this, url)) .setNegativeButton( diff --git a/src/main/res/values-ca/strings.xml b/src/main/res/values-ca/strings.xml index 58d02caf2..c0be27545 100644 --- a/src/main/res/values-ca/strings.xml +++ b/src/main/res/values-ca/strings.xml @@ -100,7 +100,7 @@