Skip to content

Linux + iPhone Continuity / iMessage / SMS

feat(ui): option to filter unknown contacts from message list

Zack Bartel5e01e622227d
diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md
index 0a8b67e..5635825 100644
--- a/docs/PROTOCOL.md
+++ b/docs/PROTOCOL.md
@@ -521,6 +521,14 @@ Thread keys are derived from the normalized peer address — `tel:+15035550101`
number, the lowercased address for an Apple ID — because MAP provides no conversation
identifier. Group keys are `group:name:<slug>` or `group:members:<slugs>`.
+#### `set_hide_unknown_senders` (Client -> Daemon, broadcast)
+**Payload**: `{"command": "set_hide_unknown_senders", "enabled": true}`
+Persisted. `bt_threads` leaves out one-to-one threads whose sender is not a contact and has
+never been replied to; no-op while no contacts are loaded. Messages are still stored and OTP
+codes still reach the vault. Their popup is shown only when it carries a code or comes from
+a short code or sender ID, and offers no reply. Answered with `bt_status` and `bt_threads`
+broadcasts; reported as `hide_unknown_senders` in `bt_status`.
+
#### `bt_list_messages` (Client -> Daemon, answered directly)
**Payload**: `{"command": "bt_list_messages", "thread": "tel:+15035550101"}`
**Response**: `{"command": "bt_messages", "thread": ..., "messages": [...]}` with `handle`,
diff --git a/po/cs.po b/po/cs.po
index 1efedcb..3d24283 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Czech\n"
@@ -2870,6 +2870,16 @@ msgid ""
"stored."
msgstr "Šifrovaně používá klíč z klíčenky. Neuchovávat smaže, co je uloženo."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Skrýt zprávy od neznámých odesílatelů"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Konverzace s čísly, která nemáte v kontaktech, jsou skryté. Kódy se stále zobrazí a vyplní automaticky."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/de.po b/po/de.po
index 942517e..91de7fb 100644
--- a/po/de.po
+++ b/po/de.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: German\n"
@@ -2939,6 +2939,16 @@ msgstr ""
"Verschlüsselt nutzt einen Schlüssel aus dem Schlüsselbund. Nicht aufbewahren "
"löscht das Gespeicherte."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Nachrichten von unbekannten Absendern ausblenden"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Unterhaltungen mit Nummern, die nicht in deinen Kontakten sind, werden ausgeblendet. Codes erscheinen weiterhin und werden automatisch ausgefüllt."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2953,7 +2963,9 @@ msgstr "Kontakte nach Nachnamen sortieren"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "Kontakte mit nur einem Namen und Firmen werden nach dem Namen sortiert, den sie haben."
+msgstr ""
+"Kontakte mit nur einem Namen und Firmen werden nach dem Namen sortiert, den "
+"sie haben."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/es.po b/po/es.po
index 47e3df2..112ab06 100644
--- a/po/es.po
+++ b/po/es.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: Spanish\n"
@@ -2916,6 +2916,16 @@ msgstr ""
"Cifrado usa una clave del depósito de claves. No conservar borra lo "
"almacenado."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Ocultar mensajes de remitentes desconocidos"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Las conversaciones con números que no están en tus contactos se ocultan. Los códigos siguen apareciendo y se rellenan automáticamente."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2930,7 +2940,9 @@ msgstr "Ordenar los contactos por apellido"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "Los contactos con un solo nombre y las empresas se ordenan por el nombre que tienen."
+msgstr ""
+"Los contactos con un solo nombre y las empresas se ordenan por el nombre que "
+"tienen."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/fr.po b/po/fr.po
index cd42c7e..5c5f1be 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: French\n"
@@ -2925,6 +2925,16 @@ msgstr ""
"Chiffré utilise une clé du trousseau. Ne pas conserver supprime ce qui est "
"stocké."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Masquer les messages d’expéditeurs inconnus"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Les conversations avec des numéros absents de vos contacts sont masquées. Les codes s’affichent toujours et sont remplis automatiquement."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2939,7 +2949,9 @@ msgstr "Trier les contacts par nom"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "Les contacts avec un seul nom et les entreprises sont triés selon le nom qu’ils ont."
+msgstr ""
+"Les contacts avec un seul nom et les entreprises sont triés selon le nom "
+"qu’ils ont."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/it.po b/po/it.po
index 6386443..b953e57 100644
--- a/po/it.po
+++ b/po/it.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Italian\n"
@@ -2913,6 +2913,16 @@ msgstr ""
"Cifrata usa una chiave del portachiavi. Non conservare elimina ciò che è "
"memorizzato."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Nascondi i messaggi da mittenti sconosciuti"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Le conversazioni con numeri non presenti nei contatti vengono nascoste. I codici compaiono comunque e vengono compilati automaticamente."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2927,7 +2937,9 @@ msgstr "Ordina i contatti per cognome"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "I contatti con un solo nome e le aziende sono ordinati in base al nome che hanno."
+msgstr ""
+"I contatti con un solo nome e le aziende sono ordinati in base al nome che "
+"hanno."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/ja.po b/po/ja.po
index 8bc0204..f3f4f8a 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Japanese\n"
@@ -2875,6 +2875,16 @@ msgstr ""
"暗号化するはデスクトップのキーリングの鍵を使います。保持しないは保存済みのも"
"のを削除します。"
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "不明な差出人からのメッセージを非表示"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "連絡先にない番号とのスレッドは非表示になります。コードは引き続き通知され、自動入力されます。"
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/ko.po b/po/ko.po
index e0c7b71..c8f6f6d 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Korean\n"
@@ -2832,6 +2832,16 @@ msgstr ""
"암호화는 데스크톱 키링의 키를 사용합니다. 보관 안 함은 저장된 것을 삭제합니"
"다."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "알 수 없는 발신자의 메시지 숨기기"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "연락처에 없는 번호와의 대화는 숨겨집니다. 코드는 계속 알림으로 표시되고 자동 입력됩니다."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/nl.po b/po/nl.po
index 568ecb0..a2105a1 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Dutch\n"
@@ -2904,6 +2904,16 @@ msgstr ""
"Versleuteld gebruikt een sleutel uit de sleutelbos. Niet bewaren wist wat is "
"opgeslagen."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Berichten van onbekende afzenders verbergen"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Gesprekken met nummers die niet in je contacten staan worden verborgen. Codes verschijnen nog steeds en worden automatisch ingevuld."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2918,7 +2928,9 @@ msgstr "Contacten sorteren op achternaam"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "Contacten met maar één naam en bedrijven worden gesorteerd op de naam die ze hebben."
+msgstr ""
+"Contacten met maar één naam en bedrijven worden gesorteerd op de naam die ze "
+"hebben."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/pl.po b/po/pl.po
index 62b892a..80b222a 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Polish\n"
@@ -2900,6 +2900,16 @@ msgstr ""
"Zaszyfrowane używa klucza z bazy kluczy. Nie przechowuj usuwa to, co jest "
"zapisane."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Ukryj wiadomości od nieznanych nadawców"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Wątki z numerami spoza kontaktów są ukryte. Kody nadal się pojawiają i są wypełniane automatycznie."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2914,7 +2924,8 @@ msgstr "Sortuj kontakty według nazwiska"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "Kontakty z jedną nazwą oraz firmy są sortowane według nazwy, którą mają."
+msgstr ""
+"Kontakty z jedną nazwą oraz firmy są sortowane według nazwy, którą mają."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 9475790..2d810cb 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Brazilian Portuguese\n"
@@ -2902,6 +2902,16 @@ msgstr ""
"Criptografado usa uma chave do chaveiro. Não guardar apaga o que está "
"armazenado."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Ocultar mensagens de remetentes desconhecidos"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Conversas com números que não estão nos seus contatos ficam ocultas. Os códigos ainda aparecem e são preenchidos automaticamente."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/ru.po b/po/ru.po
index 674b353..44b9aa0 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Russian\n"
@@ -2902,6 +2902,16 @@ msgstr ""
"«Зашифрованно» использует ключ из связки ключей. «Не хранить» удаляет "
"сохранённое."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Скрывать сообщения от неизвестных отправителей"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Переписки с номерами, которых нет в контактах, скрыты. Коды по-прежнему показываются и подставляются автоматически."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/sv.po b/po/sv.po
index 385282e..63c425a 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Swedish\n"
@@ -2872,6 +2872,16 @@ msgstr ""
"Krypterat använder en nyckel från nyckelringen. Spara inte raderar det som "
"lagrats."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Dölj meddelanden från okända avsändare"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Trådar med nummer som inte finns bland dina kontakter döljs. Koder visas fortfarande och fylls i automatiskt."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
@@ -2885,7 +2895,8 @@ msgstr "Sortera kontakter efter efternamn"
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Contacts with only one name, and businesses, sort by the name they have."
-msgstr "Kontakter med bara ett namn, och företag, sorteras efter det namn de har."
+msgstr ""
+"Kontakter med bara ett namn, och företag, sorteras efter det namn de har."
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid "Experimental"
diff --git a/po/tether.pot b/po/tether.pot
index 58e4a70..4fb689a 100644
--- a/po/tether.pot
+++ b/po/tether.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether 0.2.40\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -2615,6 +2615,16 @@ msgid ""
"stored."
msgstr ""
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr ""
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr ""
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/tr.po b/po/tr.po
index c5eb609..35dd234 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Turkish\n"
@@ -2867,6 +2867,16 @@ msgstr ""
"Şifreli, masaüstü anahtarlığındaki bir anahtarı kullanır. Saklama, kayıtlı "
"olanı siler."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Bilinmeyen gönderenlerin mesajlarını gizle"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Kişilerinizde olmayan numaralarla olan yazışmalar gizlenir. Kodlar yine de bildirim olarak görünür ve otomatik doldurulur."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/uk.po b/po/uk.po
index d2e6186..17eb15e 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Ukrainian\n"
@@ -2896,6 +2896,16 @@ msgstr ""
"«Зашифровано» використовує ключ зі сховища ключів. «Не зберігати» вилучає "
"збережене."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "Приховувати повідомлення від невідомих відправників"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "Розмови з номерами, яких немає в контактах, приховано. Коди й надалі з’являються та підставляються автоматично."
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/po/zh_CN.po b/po/zh_CN.po
index b7d6863..6a740ed 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-22 19:30-0700\n"
+"POT-Creation-Date: 2026-10-24 20:22-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Simplified Chinese\n"
@@ -2765,6 +2765,16 @@ msgid ""
"stored."
msgstr "加密使用桌面密钥环中的密钥。不保留会删除已存储的内容。"
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Hide messages from unknown senders"
+msgstr "隐藏来自未知发件人的信息"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Threads from numbers not in your contacts are hidden. Codes still pop up and "
+"autofill."
+msgstr "与不在通讯录中的号码的会话将被隐藏。验证码仍会弹出提示并自动填充。"
+
#: src/gtk/settings_view.cpp src/tui/settings.cpp
msgid ""
"Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."
diff --git a/src/core/include/tether/bluetooth/bmessage.hpp b/src/core/include/tether/bluetooth/bmessage.hpp
index dfcb9b1..7e67551 100644
--- a/src/core/include/tether/bluetooth/bmessage.hpp
+++ b/src/core/include/tether/bluetooth/bmessage.hpp
@@ -55,6 +55,10 @@ namespace tether::bluetooth {
// The stable key for one conversation.
std::string thread_key_for(const VCardParty& party);
+ // True for an alphanumeric sender ID or a short code (six digits or fewer),
+ // the senders codes and alerts arrive from.
+ bool is_short_code(const std::string& thread_key);
+
// The nationally significant digits of a number, used to recognize two
// spellings of one number. Empty when there are fewer than 10 digits.
std::string tel_suffix(const std::string& raw);
diff --git a/src/core/include/tether/bluetooth/config.hpp b/src/core/include/tether/bluetooth/config.hpp
index 86e24ea..4e21a27 100644
--- a/src/core/include/tether/bluetooth/config.hpp
+++ b/src/core/include/tether/bluetooth/config.hpp
@@ -55,6 +55,8 @@ namespace tether::bluetooth {
bool desktop_popups_enabled = true;
// Whether popups include the message text. Off shows only the sender.
bool popup_previews_enabled = true;
+ // Whether threads from senders who are not contacts are hidden. Codes still pop up and autofill.
+ bool hide_unknown_senders = false;
// Whether Tether manages AirPods at all. Off until asked.
bool airpods_enabled = false;
// Whether removing an AirPod pauses local playback.
diff --git a/src/core/include/tether/bluetooth/contacts.hpp b/src/core/include/tether/bluetooth/contacts.hpp
index 354beb0..3dd3512 100644
--- a/src/core/include/tether/bluetooth/contacts.hpp
+++ b/src/core/include/tether/bluetooth/contacts.hpp
@@ -19,6 +19,10 @@ namespace tether::bluetooth {
// messages use, e.g. "tel:+15551234567" or "email:[email protected]".
std::string name_for(const std::string& thread_key) const;
+ // A one-to-one sender that is neither a contact nor someone the user has
+ // replied to. Never true while no contacts are loaded, or every sender would be.
+ bool is_unknown_sender(const std::string& thread_key, bool replied) const;
+
// Every address a display name maps to. Returns all matches.
std::vector<std::string> addresses_for_name(const std::string& name) const;
diff --git a/src/core/include/tether/bluetooth/messages.hpp b/src/core/include/tether/bluetooth/messages.hpp
index 273da09..bc7d639 100644
--- a/src/core/include/tether/bluetooth/messages.hpp
+++ b/src/core/include/tether/bluetooth/messages.hpp
@@ -52,6 +52,7 @@ namespace tether::bluetooth {
int64_t last_timestamp = 0;
int unread = 0;
int count = 0;
+ bool replied = false;
};
// In-memory conversation store: dedupes by handle, groups into threads, and
diff --git a/src/core/src/bluetooth/bmessage.cpp b/src/core/src/bluetooth/bmessage.cpp
index 73c17c3..fe37683 100644
--- a/src/core/src/bluetooth/bmessage.cpp
+++ b/src/core/src/bluetooth/bmessage.cpp
@@ -269,6 +269,13 @@ namespace tether::bluetooth {
return {};
}
+ bool is_short_code(const std::string& thread_key) {
+ if (thread_key.rfind("sender:", 0) == 0)
+ return true;
+ return thread_key.rfind("tel:", 0) == 0 && thread_key.size() > 4 && thread_key.size() <= 4 + 6 &&
+ thread_key[4] != '+';
+ }
+
namespace {
constexpr size_t TEL_SUFFIX_DIGITS = 10;
} // namespace
diff --git a/src/core/src/bluetooth/config.cpp b/src/core/src/bluetooth/config.cpp
index bce4c97..0a299f1 100644
--- a/src/core/src/bluetooth/config.cpp
+++ b/src/core/src/bluetooth/config.cpp
@@ -65,6 +65,7 @@ namespace tether::bluetooth {
j["retention"] = to_string(config.retention);
j["desktop_popups_enabled"] = config.desktop_popups_enabled;
j["popup_previews_enabled"] = config.popup_previews_enabled;
+ j["hide_unknown_senders"] = config.hide_unknown_senders;
j["airpods_enabled"] = config.airpods_enabled;
j["airpods_pause"] = to_string(config.airpods_pause);
j["airpods_handoff"] = config.airpods_handoff;
@@ -95,6 +96,7 @@ namespace tether::bluetooth {
config.retention = retention_from_string(j.value("retention", "encrypted"));
config.desktop_popups_enabled = j.value("desktop_popups_enabled", true);
config.popup_previews_enabled = j.value("popup_previews_enabled", true);
+ config.hide_unknown_senders = j.value("hide_unknown_senders", false);
config.airpods_enabled = j.value("airpods_enabled", false);
config.airpods_pause = pause_mode_from_string(j.value("airpods_pause", ""));
config.airpods_handoff = j.value("airpods_handoff", false);
diff --git a/src/core/src/bluetooth/contacts.cpp b/src/core/src/bluetooth/contacts.cpp
index a508110..8aa15e2 100644
--- a/src/core/src/bluetooth/contacts.cpp
+++ b/src/core/src/bluetooth/contacts.cpp
@@ -58,6 +58,12 @@ namespace tether::bluetooth {
return {};
}
+ bool ContactStore::is_unknown_sender(const std::string& thread_key, bool replied) const {
+ if (replied || contacts_.empty() || thread_key.rfind("group:", 0) == 0)
+ return false;
+ return name_for(thread_key).empty();
+ }
+
std::vector<std::string> ContactStore::addresses_for_name(const std::string& name) const {
std::vector<std::string> out;
if (name.empty())
diff --git a/src/core/src/bluetooth/messages.cpp b/src/core/src/bluetooth/messages.cpp
index 823bbf4..23a50ca 100644
--- a/src/core/src/bluetooth/messages.cpp
+++ b/src/core/src/bluetooth/messages.cpp
@@ -148,6 +148,7 @@ namespace tether::bluetooth {
thread.key = message.thread_key;
thread.peer_address = message.peer_address;
++thread.count;
+ thread.replied = thread.replied || message.outgoing;
if (thread.display_name.empty() ||
(!message.peer_name.empty() && thread.display_name == thread.peer_address))
diff --git a/src/core/src/net.cpp b/src/core/src/net.cpp
index 5f798a1..1da108e 100644
--- a/src/core/src/net.cpp
+++ b/src/core/src/net.cpp
@@ -428,6 +428,7 @@ namespace tether {
status["retention_ready"] = secret::have_key();
status["desktop_popups_enabled"] = config.desktop_popups_enabled;
status["popup_previews_enabled"] = config.popup_previews_enabled;
+ status["hide_unknown_senders"] = config.hide_unknown_senders;
status["airpods_enabled"] = config.airpods_enabled;
status["airpods_pause"] = to_string(config.airpods_pause);
status["airpods_handoff"] = config.airpods_handoff;
@@ -776,9 +777,12 @@ namespace tether {
nlohmann::json result;
result["command"] = "bt_threads";
nlohmann::json threads = nlohmann::json::array();
+ const bool hide_unknown = bluetooth::load_config().hide_unknown_senders;
{
std::lock_guard<std::mutex> lock(bluetooth::message_store_mutex());
for (const auto& thread : bluetooth::message_store().threads()) {
+ if (hide_unknown && bluetooth::contact_store().is_unknown_sender(thread.key, thread.replied))
+ continue;
auto entry = bluetooth::to_json(thread);
// Contact names are applied for display only. Key on addresses, so a renamed or ambiguous contact can
// never change which conversation a message belongs to.
@@ -1509,6 +1513,12 @@ namespace tether {
bluetooth::save_config(config);
set_popup_previews_enabled(config.popup_previews_enabled);
broadcast_local_event(build_bt_status().dump());
+ } else if (j.contains("command") && j["command"] == "set_hide_unknown_senders") {
+ auto config = bluetooth::load_config();
+ config.hide_unknown_senders = j.value("enabled", false);
+ bluetooth::save_config(config);
+ broadcast_local_event(build_bt_status().dump());
+ broadcast_local_event(build_bt_threads().dump());
} else if (j.contains("command") && j["command"] == "bt_list_calls") {
nlohmann::json payload;
payload["command"] = "bt_calls";
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 9eff20b..ba12166 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -1,4 +1,5 @@
#include "notification.hpp"
+#include <algorithm>
#include <charconv>
#include <csignal>
#include <cstdio>
@@ -263,11 +264,22 @@ int main(int argc, char** argv) {
if (backfill || message.outgoing || message.read)
return;
+ const bool hide_unknown = tether::bluetooth::load_config().hide_unknown_senders;
std::string who;
+ bool unknown = false;
{
std::lock_guard<std::mutex> lock(tether::bluetooth::message_store_mutex());
who = tether::bluetooth::contact_store().name_for(message.thread_key);
+ if (hide_unknown) {
+ const auto thread = tether::bluetooth::message_store().messages(message.thread_key);
+ const bool replied =
+ std::any_of(thread.begin(), thread.end(), [](const auto& m) { return m.outgoing; });
+ unknown = tether::bluetooth::contact_store().is_unknown_sender(message.thread_key, replied);
+ }
}
+ // hidden sender still pops up with a code,
+ if (unknown && otp.empty() && !tether::bluetooth::is_short_code(message.thread_key))
+ return;
if (who.empty())
who = message.peer_name.empty() ? message.peer_address : message.peer_name;
tether::bluetooth::ancs::Notification as_notification;
@@ -276,7 +288,7 @@ int main(int argc, char** argv) {
tether::bluetooth::Recipient recipient;
std::string reply_error;
const bool repliable =
- tether::bluetooth::recipient_from_thread_key(message.thread_key, recipient, reply_error);
+ !unknown && tether::bluetooth::recipient_from_thread_key(message.thread_key, recipient, reply_error);
notifier.notify({_("Messages"),
who.empty() ? "iPhone" : who,
tether::popup_previews_enabled() ? message.body : std::string{},
diff --git a/src/gtk/settings_view.cpp b/src/gtk/settings_view.cpp
index ccb1aaf..fc0f6d6 100644
--- a/src/gtk/settings_view.cpp
+++ b/src/gtk/settings_view.cpp
@@ -33,6 +33,7 @@ namespace tether::ui {
GtkWidget* row_retention = nullptr;
GtkWidget* cmb_retention = nullptr;
GtkWidget* lbl_keyring = nullptr;
+ GtkWidget* sw_hide_unknown = nullptr;
GtkWidget* sw_last_name = nullptr;
@@ -141,6 +142,10 @@ namespace tether::ui {
daemon_send({{"command", "set_popup_previews"}, {"enabled", gtk_switch_get_active(widget) == TRUE}});
}
+ void on_hide_unknown_toggled(GtkSwitch* widget, GParamSpec*, gpointer) {
+ daemon_send({{"command", "set_hide_unknown_senders"}, {"enabled", gtk_switch_get_active(widget) == TRUE}});
+ }
+
void on_last_name_toggled(GtkSwitch* widget, GParamSpec*, gpointer) {
daemon_send(
{{"command", "bt_set_contacts_by_last_name"}, {"enabled", gtk_switch_get_active(widget) == TRUE}});
@@ -208,6 +213,10 @@ namespace tether::ui {
reinterpret_cast<gpointer>(on_lock_away_toggled),
status.value("lock_on_away", false));
+ set_switch(g_settings.sw_hide_unknown,
+ reinterpret_cast<gpointer>(on_hide_unknown_toggled),
+ status.value("hide_unknown_senders", false));
+
set_switch(g_settings.sw_last_name,
reinterpret_cast<gpointer>(on_last_name_toggled),
status.value("contacts_by_last_name", false));
@@ -350,6 +359,14 @@ namespace tether::ui {
"deletes what is stored."),
g_settings.cmb_retention);
+ g_settings.sw_hide_unknown = new_switch();
+ g_signal_connect(
+ g_settings.sw_hide_unknown, "notify::active", G_CALLBACK(on_hide_unknown_toggled), nullptr);
+ add_row(messages,
+ _("Hide messages from unknown senders"),
+ _("Threads from numbers not in your contacts are hidden. Codes still pop up and autofill."),
+ g_settings.sw_hide_unknown);
+
g_settings.lbl_keyring =
gtk_label_new(_("Paused: no key from the desktop keyring. Unlock it, or choose Unencrypted."));
gtk_label_set_xalign(GTK_LABEL(g_settings.lbl_keyring), 0.0);
diff --git a/src/tui/settings.cpp b/src/tui/settings.cpp
index c1daa42..1c601a2 100644
--- a/src/tui/settings.cpp
+++ b/src/tui/settings.cpp
@@ -61,6 +61,13 @@ namespace tether::tui {
"bt_set_retention",
"retention",
false},
+ {"unknown",
+ N_("Messages"),
+ N_("Hide messages from unknown senders"),
+ N_("Threads from numbers not in your contacts are hidden. Codes still pop up and autofill."),
+ "set_hide_unknown_senders",
+ "hide_unknown_senders",
+ false},
{"lastname",
N_("Contacts"),
N_("Sort contacts by last name"),
diff --git a/test/test_vcard.cpp b/test/test_vcard.cpp
index 76e8ca8..9dfb0f0 100644
--- a/test/test_vcard.cpp
+++ b/test/test_vcard.cpp
@@ -210,6 +210,40 @@ TEST(ContactStore, RefusesToGuessWhenTwoContactsShareASuffix) {
EXPECT_EQ(store.name_for("tel:5551234567"), "") << "an ambiguous suffix resolves to no name";
}
+TEST(ContactStore, UnknownSenderIsNeitherContactNorReplied) {
+ ContactStore store;
+ EXPECT_FALSE(store.is_unknown_sender("tel:+15559999999", false)) << "nothing is unknown before contacts load";
+
+ store.set(parse_vcards("BEGIN:VCARD\nFN:Ada\nTEL:+15551234567\nEND:VCARD\n"));
+ EXPECT_FALSE(store.is_unknown_sender("tel:+15551234567", false));
+ EXPECT_FALSE(store.is_unknown_sender("tel:5551234567", false)) << "the national form of a contact is known";
+ EXPECT_TRUE(store.is_unknown_sender("tel:+15559999999", false));
+ EXPECT_TRUE(store.is_unknown_sender("email:[email protected]", false));
+ EXPECT_TRUE(store.is_unknown_sender("sender:amazon", false));
+ EXPECT_FALSE(store.is_unknown_sender("tel:+15559999999", true)) << "a thread the user replied to is known";
+ EXPECT_FALSE(store.is_unknown_sender("group:members:a,b", false));
+}
+
+TEST(ThreadKeys, RecognizesShortCodesAndSenderIds) {
+ EXPECT_TRUE(is_short_code("sender:amazon"));
+ EXPECT_TRUE(is_short_code("tel:32665"));
+ EXPECT_TRUE(is_short_code("tel:123456"));
+ EXPECT_FALSE(is_short_code("tel:1234567"));
+ EXPECT_FALSE(is_short_code("tel:+12345"));
+ EXPECT_FALSE(is_short_code("tel:"));
+ EXPECT_FALSE(is_short_code("email:[email protected]"));
+}
+
+TEST(MessageStore, ThreadRecordsWhetherTheUserReplied) {
+ MessageStore store;
+ store.add({.handle = "1", .thread_key = "tel:+15559999999", .body = "hi", .timestamp = 1});
+ store.add({.handle = "2", .thread_key = "tel:+15558888888", .body = "hi", .timestamp = 2});
+ store.add({.handle = "3", .thread_key = "tel:+15558888888", .body = "yo", .timestamp = 3, .outgoing = true});
+
+ for (const auto& thread : store.threads())
+ EXPECT_EQ(thread.replied, thread.key == "tel:+15558888888") << thread.key;
+}
+
// Shortcodes and extensions are too short to carry a country code, so they match
// exactly or not at all.
TEST(ContactStore, DoesNotSuffixMatchShortNumbers) {