Skip to content

Linux + iPhone Continuity / iMessage / SMS

feat: favorite contacts, recent calls, callback

Zack Bartel1dc52a4c120e
diff --git a/README.md b/README.md
index fd8980e..2829ef9 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +55,7 @@ Connections run over TLS 1.2 and both sides present a self-signed X.509 certific
### Phone Calls
Place, answer and end calls on the iPhone from the desktop, complete with caller ID and the phone's carrier and signal.
+Recent calls from the iPhone are listed with a button to call back, and the iPhone's favorites are starred at the top of Contacts. These need **Phone Recents** and **Phone Favorites** turned on under the iPhone's Bluetooth settings for this computer.
The call audio stays on the iPhone. If you've used Linux long enough you know why (it sounds like "FalsePotty-o"). PulsAlsaWire is too hard to support across all deployment targets.
Stock PipeWire makes the computer a speaker for the phone, which takes call control away and moves the iPhone's music and sounds to the desktop. The recommended audio setting is in [Keeping the phone's audio on the phone](docs/BLUETOOTH.md#keeping-the-phones-audio-on-the-phone).
@@ -307,7 +308,7 @@ tether status # devices, links, and recent tran
See [docs/HEADLESS.md](docs/HEADLESS.md), or [the container guide](docs/CONTAINER.md)
for Docker deployment.
-## Alternative web UI
+### Alternative web UI
The [tether-web project](https://github.com/napisani/tether-web) provides a lightweight browser interface for running Tether without a desktop session. It runs `tetherd` in headless mode and lets you pair and manage a Bluetooth-connected iPhone from a browser.
diff --git a/docs/BLUETOOTH.md b/docs/BLUETOOTH.md
index b48de81..5adc31a 100644
--- a/docs/BLUETOOTH.md
+++ b/docs/BLUETOOTH.md
@@ -934,6 +934,8 @@ checks the daemon does not make.
| Messages and contacts worked, then stopped, and the error mentions a service record | `bluetoothd` restarted and reset the Class of Device | `sudo systemctl enable --now tether-btclass@hci0`, then re-pair if the phone dropped the bond |
| The phone never offers notifications / Sync Contacts | The class is wrong, or the ANCS advertisement is not running | Check for `class=ok` in `tether --bt-status`, can take minutes |
| MAP or PBAP reports `forbidden` | The matching toggle on the phone is off | Turn it on. This is not a pairing failure |
+| Contacts shows no favorites | **Phone Favorites** is off under the iPhone's Bluetooth settings for this computer | Turn it on, then reconnect the phone |
+| Calls tab shows no recent calls | **Phone Recents** is off under the iPhone's Bluetooth settings for this computer | Turn it on. History is pulled again after the next call ends |
| Pairing never starts, and the only log line is a profile connect refused with `Connection refused (111)` | `Device1.Connect()` induces pairing only as a side effect of a profile connect, and this phone refuses that profile from an unbonded device | Nothing. Tether retries the transaction as an explicit `Device1.Pair()` on its own. To go straight there, `tether --bt-pair <addr> --explicit-pair` |
| The phone shows a pairing code, then "Pairing Unsuccessful" a moment later, and the daemon reports the transaction failed about 90s after `confirm` | `tetherd` has no display, so the confirmation dialog could not be shown, and an unshowable dialog used to count as a refusal | Fixed. The comparison now goes to whichever client started the pairing -- the CLI prompts on the terminal, the GTK app opens its own dialog. On an older build, start `tetherd` from a graphical session so it inherits `DISPLAY` or `WAYLAND_DISPLAY` |
| Pairing fails a few hundred ms after `confirm`, and `tetherd.log` says `tether-dialog: error while loading shared libraries: libgtk-layer-shell.so.0` | `tether-dialog` is linked against `gtk-layer-shell`, which the package did not depend on, so it died in the dynamic loader with exit 127 -- read as the user refusing | Install `gtk-layer-shell`. Fixed in the package dependencies, and a dialog that cannot run now routes the comparison to the client that started the pairing instead of declining it -- see 2026-08-29 below |
@@ -1650,6 +1652,23 @@ is a normal terminal state rather than a failure (file may still take a bit to a
which is why the pull waits instead of giving up. Contacts are staged in `$XDG_RUNTIME_DIR` rather than `/tmp`, since a
phonebook is personal data.
+#### Call history (2026-10-08)
+
+With "Phone Favorites" and "Phone Recents" on, an iPhone 15 Pro served `cch`, `ich`, `och`,
+`mch` and `fav` over the same PBAP session, and refused `spd` with `Not Found`.
+
+- Each history card carries `X-IRMC-CALL-DATETIME;MISSED:20261007T111657`. The type is a
+ bare parameter rather than `TYPE=`, and the time is local with no zone.
+- `cch` comes back newest first, with missed, received and dialed calls mixed together.
+- 17 of 20 `cch` cards had an empty `FN`, so names are resolved against the `pb` pull by number.
+- `fav` returned 6 cards in the ordinary contact form, with no call fields. Tether pulls it
+ right after `pb` and marks the matching `pb` contacts, by number or email, as favorites.
+- Calls the iPhone blocks never reach HFP and are left out of its recents. Calls silenced
+ by "Silence Unknown Callers" show up in `cch` as missed.
+
+Tether pulls the 100 newest `cch` entries (`Fields: [N, FN, TEL, X-IRMC-CALL-DATETIME]`)
+when a PBAP session opens and again after each call ends. They are kept in memory only.
+
### The store at rest
Mode 0600 was the whole protection until 0.2.24, and it is not enough: it does
diff --git a/po/cs.po b/po/cs.po
index 6104cb9..6bdf4c4 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Czech\n"
@@ -1513,7 +1513,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Zprávy"
@@ -1824,6 +1825,30 @@ msgstr "Odmítnout"
msgid "Hang up"
msgstr "Zavěsit"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d. %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Zmeškaný"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Odchozí"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Volat {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Žádné hovory."
@@ -1846,6 +1871,10 @@ msgstr "Volat"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Operátor, signál a baterie iPhonu."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Nedávné hovory"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Kopírovat"
@@ -1871,6 +1900,10 @@ msgstr "Napsat zprávu"
msgid "Message {}"
msgstr "Napsat zprávu {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Oblíbený"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2456,12 +2489,6 @@ msgstr "Otevřít na této kartě"
msgid "Open the messages tab on this conversation"
msgstr "Otevřít kartu zpráv na této konverzaci"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Včera"
diff --git a/po/de.po b/po/de.po
index c839a47..96581f0 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: German\n"
@@ -1547,7 +1547,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Nachrichten"
@@ -1865,6 +1866,30 @@ msgstr "Ablehnen"
msgid "Hang up"
msgstr "Auflegen"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d. %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Verpasst"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Ausgehend"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "{} anrufen"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Keine Anrufe."
@@ -1886,6 +1911,10 @@ msgstr "Anrufen"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Netzbetreiber, Signal und Akku des iPhones."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Letzte Anrufe"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Kopieren"
@@ -1911,6 +1940,10 @@ msgstr "Nachricht schreiben"
msgid "Message {}"
msgstr "Nachricht an {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favorit"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2506,12 +2539,6 @@ msgstr "In diesem Tab öffnen"
msgid "Open the messages tab on this conversation"
msgstr "Den Nachrichten-Tab bei dieser Unterhaltung öffnen"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Gestern"
diff --git a/po/es.po b/po/es.po
index 393a52a..651d077 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: Spanish\n"
@@ -1538,7 +1538,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Mensajes"
@@ -1852,6 +1853,30 @@ msgstr "Rechazar"
msgid "Hang up"
msgstr "Colgar"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Perdida"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Saliente"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Llamar a {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "No hay llamadas."
@@ -1874,6 +1899,10 @@ msgstr "Llamar"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Operador, señal y batería del iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Llamadas recientes"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Copiar"
@@ -1899,6 +1928,10 @@ msgstr "Enviar mensaje"
msgid "Message {}"
msgstr "Enviar mensaje a {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favorito"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2493,12 +2526,6 @@ msgstr "Abrir en esta pestaña"
msgid "Open the messages tab on this conversation"
msgstr "Abrir la pestaña de mensajes en esta conversación"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Ayer"
diff --git a/po/fr.po b/po/fr.po
index a7ff5d3..f33cf00 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: French\n"
@@ -1541,7 +1541,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Messages"
@@ -1857,6 +1858,30 @@ msgstr "Refuser"
msgid "Hang up"
msgstr "Raccrocher"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Manqué"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Sortant"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Appeler {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Aucun appel."
@@ -1879,6 +1904,10 @@ msgstr "Appeler"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Opérateur, signal et batterie de l'iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Appels récents"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Copier"
@@ -1904,6 +1933,10 @@ msgstr "Envoyer un message"
msgid "Message {}"
msgstr "Envoyer un message à {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favori"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2497,12 +2530,6 @@ msgstr "Ouvrir sur cet onglet"
msgid "Open the messages tab on this conversation"
msgstr "Ouvrir l'onglet Messages sur cette conversation"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Hier"
diff --git a/po/it.po b/po/it.po
index 008dc22..ee3a5e7 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Italian\n"
@@ -1535,7 +1535,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Messaggi"
@@ -1849,6 +1850,30 @@ msgstr "Rifiuta"
msgid "Hang up"
msgstr "Chiudi"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Persa"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "In uscita"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Chiama {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Nessuna chiamata."
@@ -1871,6 +1896,10 @@ msgstr "Chiama"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Operatore, segnale e batteria dell'iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Chiamate recenti"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Copia"
@@ -1896,6 +1925,10 @@ msgstr "Invia messaggio"
msgid "Message {}"
msgstr "Invia messaggio a {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Preferito"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2489,12 +2522,6 @@ msgstr "Apri su questa scheda"
msgid "Open the messages tab on this conversation"
msgstr "Apri la scheda messaggi su questa conversazione"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Ieri"
diff --git a/po/ja.po b/po/ja.po
index 7578b68..5d026f9 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Japanese\n"
@@ -1504,7 +1504,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "メッセージ"
@@ -1819,6 +1820,30 @@ msgstr "拒否"
msgid "Hang up"
msgstr "終了"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%m月%d日 %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "不在着信"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "発信"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "{}に発信"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "通話はありません。"
@@ -1840,6 +1865,10 @@ msgstr "発信"
msgid "The iPhone's carrier, signal, and battery."
msgstr "iPhone の通信事業者、電波、バッテリー。"
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "最近の通話"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "コピー"
@@ -1865,6 +1894,10 @@ msgstr "メッセージを送信"
msgid "Message {}"
msgstr "{} にメッセージ"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "よく使う項目"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2450,12 +2483,6 @@ msgstr "このタブで開く"
msgid "Open the messages tab on this conversation"
msgstr "この会話でメッセージタブを開く"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "昨日"
diff --git a/po/ko.po b/po/ko.po
index cd6523e..def516c 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Korean\n"
@@ -1485,7 +1485,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "메시지"
@@ -1797,6 +1798,30 @@ msgstr "거절"
msgid "Hang up"
msgstr "끊기"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%m월 %d일 %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "부재중"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "발신"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "{}에게 전화"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "통화가 없습니다."
@@ -1817,6 +1842,10 @@ msgstr "전화 걸기"
msgid "The iPhone's carrier, signal, and battery."
msgstr "iPhone의 통신사, 신호, 배터리입니다."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "최근 통화"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "복사"
@@ -1842,6 +1871,10 @@ msgstr "메시지 보내기"
msgid "Message {}"
msgstr "{}에 메시지 보내기"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "즐겨찾기"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr "아직 연락처가 없습니다. 기기 페이지에서 블루투스 연결을 확인하세요."
@@ -2422,12 +2455,6 @@ msgstr "이 탭에서 열기"
msgid "Open the messages tab on this conversation"
msgstr "이 대화에서 메시지 탭 열기"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "어제"
diff --git a/po/nl.po b/po/nl.po
index ffedb97..22daeb8 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Dutch\n"
@@ -1528,7 +1528,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Berichten"
@@ -1841,6 +1842,30 @@ msgstr "Weigeren"
msgid "Hang up"
msgstr "Ophangen"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Gemist"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Uitgaand"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "{} bellen"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Geen oproepen."
@@ -1863,6 +1888,10 @@ msgstr "Bellen"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Provider, signaal en batterij van de iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Recente oproepen"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Kopiëren"
@@ -1888,6 +1917,10 @@ msgstr "Bericht sturen"
msgid "Message {}"
msgstr "Bericht aan {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favoriet"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2477,12 +2510,6 @@ msgstr "Op dit tabblad openen"
msgid "Open the messages tab on this conversation"
msgstr "Het tabblad Berichten op dit gesprek openen"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Gisteren"
diff --git a/po/pl.po b/po/pl.po
index fd0ee25..63adc13 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Polish\n"
@@ -1528,7 +1528,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Wiadomości"
@@ -1841,6 +1842,30 @@ msgstr "Odrzuć"
msgid "Hang up"
msgstr "Rozłącz"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Nieodebrane"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Wychodzące"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Zadzwoń do {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Brak połączeń."
@@ -1863,6 +1888,10 @@ msgstr "Zadzwoń"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Operator, sygnał i bateria iPhone’a."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Ostatnie połączenia"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Kopiuj"
@@ -1888,6 +1917,10 @@ msgstr "Wyślij wiadomość"
msgid "Message {}"
msgstr "Wyślij wiadomość do {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Ulubiony"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2475,12 +2508,6 @@ msgstr "Otwórz na tej karcie"
msgid "Open the messages tab on this conversation"
msgstr "Otwórz kartę wiadomości na tej rozmowie"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Wczoraj"
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 9cc6a72..9407ea8 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Brazilian Portuguese\n"
@@ -1528,7 +1528,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Mensagens"
@@ -1842,6 +1843,30 @@ msgstr "Recusar"
msgid "Hang up"
msgstr "Encerrar"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d de %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Perdida"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Efetuada"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Ligar para {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Nenhuma chamada."
@@ -1864,6 +1889,10 @@ msgstr "Ligar"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Operadora, sinal e bateria do iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Chamadas recentes"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Copiar"
@@ -1889,6 +1918,10 @@ msgstr "Enviar mensagem"
msgid "Message {}"
msgstr "Enviar mensagem para {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favorito"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2476,12 +2509,6 @@ msgstr "Abrir nesta aba"
msgid "Open the messages tab on this conversation"
msgstr "Abrir a aba de mensagens nesta conversa"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Ontem"
diff --git a/po/ru.po b/po/ru.po
index 61e7369..2011658 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Russian\n"
@@ -1528,7 +1528,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Сообщения"
@@ -1840,6 +1841,30 @@ msgstr "Отклонить"
msgid "Hang up"
msgstr "Завершить"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Пропущенный"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Исходящий"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Позвонить {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Вызовов нет."
@@ -1862,6 +1887,10 @@ msgstr "Позвонить"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Оператор, сигнал и батарея iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Недавние вызовы"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Копировать"
@@ -1887,6 +1916,10 @@ msgstr "Написать сообщение"
msgid "Message {}"
msgstr "Написать {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Избранное"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2477,12 +2510,6 @@ msgstr "Открыть на этой вкладке"
msgid "Open the messages tab on this conversation"
msgstr "Открыть вкладку сообщений на этой переписке"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Вчера"
diff --git a/po/sv.po b/po/sv.po
index e194bc4..8127574 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Swedish\n"
@@ -1514,7 +1514,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Meddelanden"
@@ -1825,6 +1826,30 @@ msgstr "Avvisa"
msgid "Hang up"
msgstr "Lägg på"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Missat"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Utgående"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Ring {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Inga samtal."
@@ -1845,6 +1870,10 @@ msgstr "Ring"
msgid "The iPhone's carrier, signal, and battery."
msgstr "iPhones operatör, signal och batteri."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Senaste samtal"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Kopiera"
@@ -1870,6 +1899,10 @@ msgstr "Skicka meddelande"
msgid "Message {}"
msgstr "Skicka meddelande till {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favorit"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2457,12 +2490,6 @@ msgstr "Öppna på den här fliken"
msgid "Open the messages tab on this conversation"
msgstr "Öppna meddelandefliken på den här konversationen"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Igår"
diff --git a/po/tether.pot b/po/tether.pot
index c5b3af1..46bf3a4 100644
--- a/po/tether.pot
+++ b/po/tether.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: tether 0.2.35\n"
+"Project-Id-Version: tether 0.2.36\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-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"
@@ -1355,7 +1355,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr ""
@@ -1648,6 +1649,30 @@ msgstr ""
msgid "Hang up"
msgstr ""
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr ""
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr ""
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr ""
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr ""
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr ""
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr ""
@@ -1668,6 +1693,10 @@ msgstr ""
msgid "The iPhone's carrier, signal, and battery."
msgstr ""
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr ""
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr ""
@@ -1693,6 +1722,10 @@ msgstr ""
msgid "Message {}"
msgstr ""
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr ""
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2232,12 +2265,6 @@ msgstr ""
msgid "Open the messages tab on this conversation"
msgstr ""
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr ""
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr ""
diff --git a/po/tr.po b/po/tr.po
index 6a9650f..e63e9d4 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Turkish\n"
@@ -1513,7 +1513,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Mesajlar"
@@ -1824,6 +1825,30 @@ msgstr "Reddet"
msgid "Hang up"
msgstr "Kapat"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Cevapsız"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Giden"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "{} ara"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Çağrı yok."
@@ -1844,6 +1869,10 @@ msgstr "Ara"
msgid "The iPhone's carrier, signal, and battery."
msgstr "iPhone’un operatörü, sinyali ve pili."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Son aramalar"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Kopyala"
@@ -1869,6 +1898,10 @@ msgstr "Mesaj gönder"
msgid "Message {}"
msgstr "{} adresine mesaj gönder"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Favori"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2453,12 +2486,6 @@ msgstr "Bu sekmede aç"
msgid "Open the messages tab on this conversation"
msgstr "Mesajlar sekmesini bu konuşmada aç"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Dün"
diff --git a/po/uk.po b/po/uk.po
index 9724779..c424a6a 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Ukrainian\n"
@@ -1525,7 +1525,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "Повідомлення"
@@ -1837,6 +1838,30 @@ msgstr "Відхилити"
msgid "Hang up"
msgstr "Завершити"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%d %b, %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "Пропущений"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "Вихідний"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "Зателефонувати {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "Викликів немає."
@@ -1859,6 +1884,10 @@ msgstr "Подзвонити"
msgid "The iPhone's carrier, signal, and battery."
msgstr "Оператор, сигнал і батарея iPhone."
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "Недавні виклики"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "Копіювати"
@@ -1884,6 +1913,10 @@ msgstr "Написати повідомлення"
msgid "Message {}"
msgstr "Написати {}"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "Обране"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr ""
@@ -2473,12 +2506,6 @@ msgstr "Відкрити на цій вкладці"
msgid "Open the messages tab on this conversation"
msgstr "Відкрити вкладку повідомлень на цій розмові"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "Учора"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 1e39542..0c91c11 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-06 18:58-0700\n"
+"POT-Creation-Date: 2026-10-08 19:43-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Simplified Chinese\n"
@@ -1449,7 +1449,8 @@ msgstr ""
#. TRANSLATORS: the feature name Tether shows for this profile.
#: src/core/src/bluetooth/profile_supervisor.cpp src/daemon/main.cpp
-#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/settings_view.cpp
+#: src/gtk/devices_view.cpp src/gtk/main.cpp src/gtk/messages_view.cpp
+#: src/gtk/settings_view.cpp
msgid "Messages"
msgstr "信息"
@@ -1755,6 +1756,30 @@ msgstr "拒接"
msgid "Hang up"
msgstr "挂断"
+#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
+#: src/gtk/calls_view.cpp src/gtk/message_format.cpp src/gtk/messages_view.cpp
+#, no-c-format
+msgid "%H:%M"
+msgstr "%H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "%b %d, %H:%M"
+msgstr "%m月%d日 %H:%M"
+
+#: src/gtk/calls_view.cpp
+msgid "Missed"
+msgstr "未接"
+
+#: src/gtk/calls_view.cpp
+msgid "Outgoing"
+msgstr "呼出"
+
+#. TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+#: src/gtk/calls_view.cpp
+#, c++-format
+msgid "Call {}"
+msgstr "呼叫 {}"
+
#: src/gtk/calls_view.cpp
msgid "No calls."
msgstr "没有通话。"
@@ -1775,6 +1800,10 @@ msgstr "拨打"
msgid "The iPhone's carrier, signal, and battery."
msgstr "iPhone 的运营商、信号和电量。"
+#: src/gtk/calls_view.cpp
+msgid "Recent calls"
+msgstr "最近通话"
+
#: src/gtk/contacts_view.cpp
msgid "Copy"
msgstr "复制"
@@ -1800,6 +1829,10 @@ msgstr "发送信息"
msgid "Message {}"
msgstr "给 {} 发信息"
+#: src/gtk/contacts_view.cpp
+msgid "Favorite"
+msgstr "个人收藏"
+
#: src/gtk/contacts_view.cpp
msgid "No contacts yet. Check the Bluetooth link on the Devices page."
msgstr "暂无联系人。请在“设备”页面检查蓝牙连接。"
@@ -2372,12 +2405,6 @@ msgstr "在此标签页中打开"
msgid "Open the messages tab on this conversation"
msgstr "在此会话中打开信息标签页"
-#. TRANSLATORS: strftime clock time on today's conversations, e.g. "%I:%M %p" for 12-hour.
-#: src/gtk/message_format.cpp src/gtk/messages_view.cpp
-#, no-c-format
-msgid "%H:%M"
-msgstr "%H:%M"
-
#: src/gtk/message_format.cpp
msgid "Yesterday"
msgstr "昨天"
diff --git a/src/core/include/tether/bluetooth/connection.hpp b/src/core/include/tether/bluetooth/connection.hpp
index 2ad645d..6295e91 100644
--- a/src/core/include/tether/bluetooth/connection.hpp
+++ b/src/core/include/tether/bluetooth/connection.hpp
@@ -72,6 +72,10 @@ namespace tether::bluetooth {
// Whether the phone has Hands-Free up.
bool calls_available() const;
+ // The phone's recent calls, newest first: number, name, type
+ void set_call_history_handler(CallsFn on_history);
+ nlohmann::json call_history() const;
+
nlohmann::json notifications(size_t limit = 50) const;
~ConnectionManager();
diff --git a/src/core/include/tether/bluetooth/contacts.hpp b/src/core/include/tether/bluetooth/contacts.hpp
index 8d409ad..645525b 100644
--- a/src/core/include/tether/bluetooth/contacts.hpp
+++ b/src/core/include/tether/bluetooth/contacts.hpp
@@ -23,6 +23,7 @@ namespace tether::bluetooth {
std::vector<std::string> addresses_for_name(const std::string& name) const;
// Contacts whose name or any of their addresses contains `needle`, case- and accent-insensitively.
+ // Favorites first, then by name.
std::vector<VCard> search(const std::string& needle, size_t limit) const;
size_t size() const { return contacts_.size(); }
@@ -36,6 +37,10 @@ namespace tether::bluetooth {
std::map<std::string, std::string> by_tel_suffix_;
};
+ // Flags each contact that shares a phone number or email with a card from
+ // the phone's Favorites list, or its name when that card has neither.
+ void mark_favorites(std::vector<VCard>& contacts, const std::vector<VCard>& favorites);
+
std::string contacts_path(Retention mode);
std::string contacts_path();
diff --git a/src/core/include/tether/bluetooth/pbap_session.hpp b/src/core/include/tether/bluetooth/pbap_session.hpp
index ddb1ad8..17952aa 100644
--- a/src/core/include/tether/bluetooth/pbap_session.hpp
+++ b/src/core/include/tether/bluetooth/pbap_session.hpp
@@ -14,6 +14,10 @@ namespace tether::bluetooth {
inline constexpr int PBAP_TRANSFER_TIMEOUT_SECONDS = 60;
inline constexpr int PBAP_FILE_GRACE_SECONDS = 3;
inline constexpr int PBAP_MAX_CONTACTS = 5000;
+ inline constexpr int PBAP_MAX_CALLS = 100;
+
+ inline constexpr const char* PBAP_CONTACT_FIELDS = "['N','FN','TEL','EMAIL']";
+ inline constexpr const char* PBAP_CALL_FIELDS = "['N','FN','TEL','X-IRMC-CALL-DATETIME']";
struct PbapSessionState;
@@ -36,7 +40,8 @@ namespace tether::bluetooth {
//
// Uses PullAll's MaxCount filter. MaxListCount is MAP's option and makes a
// PBAP transfer fail or return nothing at all.
- std::vector<VCard> pull_all(std::string& err, int max = PBAP_MAX_CONTACTS);
+ std::vector<VCard>
+ pull_all(std::string& err, int max = PBAP_MAX_CONTACTS, const char* fields = PBAP_CONTACT_FIELDS);
const std::string& path() const;
diff --git a/src/core/include/tether/bluetooth/vcard.hpp b/src/core/include/tether/bluetooth/vcard.hpp
index 30b8eb1..424d7cf 100644
--- a/src/core/include/tether/bluetooth/vcard.hpp
+++ b/src/core/include/tether/bluetooth/vcard.hpp
@@ -12,8 +12,14 @@ namespace tether::bluetooth {
std::string name;
std::vector<std::string> tels;
std::vector<std::string> emails;
-
- bool empty() const { return name.empty() && tels.empty() && emails.empty(); }
+ // Call history only (X-IRMC-CALL-DATETIME): MISSED, RECEIVED or DIALED,
+ // and the phone's local time as "YYYYMMDDTHHMMSS".
+ std::string call_type;
+ std::string call_time;
+ // On the phone's Favorites list (PBAP fav).
+ bool favorite = false;
+
+ bool empty() const { return name.empty() && tels.empty() && emails.empty() && call_time.empty(); }
};
// Parses a vCard 3.0 document containing any number of cards.
diff --git a/src/core/src/bluetooth/connection.cpp b/src/core/src/bluetooth/connection.cpp
index 1ed0e8a..d47a645 100644
--- a/src/core/src/bluetooth/connection.cpp
+++ b/src/core/src/bluetooth/connection.cpp
@@ -1,5 +1,6 @@
#include "tether/bluetooth/connection.hpp"
#include "tether/bluetooth/ancs/client.hpp"
+#include "tether/bluetooth/bmessage.hpp"
#include "tether/bluetooth/config.hpp"
#include "tether/bluetooth/contacts.hpp"
#include "tether/bluetooth/groups.hpp"
@@ -710,6 +711,14 @@ namespace tether::bluetooth {
bool map_session_backfill = true;
std::string pulled_pbap_path;
+ // The phone's recent calls (PBAP cch), newest first. Memory only.
+ std::vector<VCard> call_history;
+ mutable std::mutex call_history_mutex;
+ // Set by a new PBAP session and by a call ending, which can happen on
+ // refresh_calls()'s thread.
+ std::atomic<bool> call_history_stale{true};
+ ConnectionManager::CallsFn on_call_history;
+
std::shared_ptr<ancs::AncsClient> ancs_client;
mutable std::mutex ancs_mutex;
ConnectionManager::NotificationFn on_notification;
@@ -749,6 +758,8 @@ namespace tether::bluetooth {
void sync_messages(int64_t now);
void sync_contacts();
+ void sync_call_history();
+ nlohmann::json call_history_json() const;
void sync_ancs(int64_t now);
// Brings the ANCS client and the bearer supervisor in line with the wanted preference and the controller's
@@ -1064,6 +1075,7 @@ namespace tether::bluetooth {
if (pulled_pbap_path == profiles->pbap_session())
return;
pulled_pbap_path = profiles->pbap_session();
+ call_history_stale = true;
PbapSession session(profile_ops->bus(), pulled_pbap_path);
std::string err;
@@ -1078,12 +1090,76 @@ namespace tether::bluetooth {
return;
}
+ // The phone refuses fav when its "Phone Favorites" sync toggle is off.
+ std::vector<VCard> favorites;
+ if (session.select_phonebook(err, "int", "fav"))
+ favorites = session.pull_all(err);
+ if (err.empty())
+ mark_favorites(contacts, favorites);
+ else
+ debug::log(INFO, "bluetooth: favorites unavailable: {}", err);
+
{
std::lock_guard<std::mutex> lock(g_messages_mutex);
contact_store().set(std::move(contacts));
}
save_contacts(contact_store());
- debug::log(INFO, "bluetooth: pulled {} contacts", contact_store().size());
+ debug::log(INFO, "bluetooth: pulled {} contacts, {} favorites", contact_store().size(), favorites.size());
+ }
+
+ // Re-pulls recent calls when stale. Clearing the flag before the pull means a
+ // call that ends mid-transfer schedules another pull instead of being missed.
+ void ConnectionState::sync_call_history() {
+ if (!profiles->status().pbap_open || pulled_pbap_path != profiles->pbap_session())
+ return;
+ if (!call_history_stale.exchange(false))
+ return;
+
+ PbapSession session(profile_ops->bus(), pulled_pbap_path);
+ std::string err;
+ std::vector<VCard> history;
+ if (session.select_phonebook(err, "int", "cch"))
+ history = session.pull_all(err, PBAP_MAX_CALLS, PBAP_CALL_FIELDS);
+ // The phone refuses cch when its "Phone Recents" sync toggle is off.
+ if (!err.empty()) {
+ debug::log(INFO, "bluetooth: call history unavailable: {}", err);
+ return;
+ }
+
+ debug::log(INFO, "bluetooth: pulled {} recent calls", history.size());
+ {
+ std::lock_guard<std::mutex> lock(call_history_mutex);
+ call_history = std::move(history);
+ }
+ if (on_call_history)
+ on_call_history(call_history_json());
+ }
+
+ nlohmann::json ConnectionState::call_history_json() const {
+ std::vector<VCard> history;
+ {
+ std::lock_guard<std::mutex> lock(call_history_mutex);
+ history = call_history;
+ }
+
+ nlohmann::json out = nlohmann::json::array();
+ std::lock_guard<std::mutex> lock(g_messages_mutex);
+ for (const auto& card : history) {
+ const std::string number = card.tels.empty() ? std::string{} : normalize_phone(card.tels.front());
+ std::string name = card.name;
+ if (name.empty() && !number.empty())
+ name = contact_store().name_for("tel:" + number);
+ std::string type = card.call_type;
+ std::transform(type.begin(), type.end(), type.begin(), [](unsigned char c) { return std::tolower(c); });
+
+ nlohmann::json entry;
+ entry["number"] = number;
+ entry["name"] = name;
+ entry["type"] = type;
+ entry["timestamp"] = parse_map_timestamp(card.call_time);
+ out.push_back(std::move(entry));
+ }
+ return out;
}
// Keeps the ANCS client pointed at the LE session and drains its work.
@@ -1236,6 +1312,8 @@ namespace tether::bluetooth {
nlohmann::json calls = client->calls();
if (calls == last_calls)
return;
+ if (last_calls.is_array() && calls.size() < last_calls.size())
+ call_history_stale = true;
last_calls = calls;
if (on_calls)
on_calls(std::move(calls));
@@ -1316,6 +1394,7 @@ namespace tether::bluetooth {
publish();
sync_contacts();
+ sync_call_history();
sync_messages(now);
sync_ancs(now);
sync_calls();
@@ -1445,6 +1524,10 @@ namespace tether::bluetooth {
state_->open_map_path.clear();
state_->pulled_pbap_path.clear();
+ {
+ std::lock_guard<std::mutex> lock(state_->call_history_mutex);
+ state_->call_history.clear();
+ }
state_->map_session_backfill = true;
state_->map_failures = 0;
state_->next_message_poll = 0;
@@ -1486,6 +1569,12 @@ namespace tether::bluetooth {
void ConnectionManager::refresh_calls() { state_->sync_calls(); }
+ void ConnectionManager::set_call_history_handler(CallsFn on_history) {
+ state_->on_call_history = std::move(on_history);
+ }
+
+ nlohmann::json ConnectionManager::call_history() const { return state_->call_history_json(); }
+
void ConnectionManager::set_calls_enabled(bool enabled) { state_->calls_wanted = enabled; }
void ConnectionManager::set_lock_on_away(bool enabled, int grace_seconds) {
diff --git a/src/core/src/bluetooth/contacts.cpp b/src/core/src/bluetooth/contacts.cpp
index 24af176..40d7129 100644
--- a/src/core/src/bluetooth/contacts.cpp
+++ b/src/core/src/bluetooth/contacts.cpp
@@ -11,6 +11,7 @@
#include <filesystem>
#include <fstream>
#include <glib.h>
+#include <set>
#include <unistd.h>
namespace tether::bluetooth {
@@ -103,8 +104,6 @@ namespace tether::bluetooth {
const std::string wanted = fold(needle);
std::vector<VCard> out;
for (const auto& card : contacts_) {
- if (out.size() >= limit)
- break;
if (wanted.empty()) {
out.push_back(card);
continue;
@@ -117,10 +116,39 @@ namespace tether::bluetooth {
if (haystack.find(wanted) != std::string::npos)
out.push_back(card);
}
- std::sort(out.begin(), out.end(), [](const VCard& a, const VCard& b) { return fold(a.name) < fold(b.name); });
+ // Sorted before the limit applies, so a favorite is never cut off.
+ std::sort(out.begin(), out.end(), [](const VCard& a, const VCard& b) {
+ if (a.favorite != b.favorite)
+ return a.favorite;
+ return fold(a.name) < fold(b.name);
+ });
+ if (out.size() > limit)
+ out.resize(limit);
return out;
}
+ void mark_favorites(std::vector<VCard>& contacts, const std::vector<VCard>& favorites) {
+ std::set<std::string> keys;
+ for (const auto& fav : favorites) {
+ for (const auto& tel : fav.tels)
+ if (std::string normalized = normalize_phone(tel); !normalized.empty())
+ keys.insert("tel:" + normalized);
+ for (const auto& email : fav.emails)
+ if (std::string normalized = normalize_email(email); !normalized.empty())
+ keys.insert("email:" + normalized);
+ if (fav.tels.empty() && fav.emails.empty() && !fav.name.empty())
+ keys.insert("name:" + fold(fav.name));
+ }
+
+ for (auto& card : contacts) {
+ card.favorite = keys.count("name:" + fold(card.name)) > 0;
+ for (const auto& tel : card.tels)
+ card.favorite = card.favorite || keys.count("tel:" + normalize_phone(tel)) > 0;
+ for (const auto& email : card.emails)
+ card.favorite = card.favorite || keys.count("email:" + normalize_email(email)) > 0;
+ }
+ }
+
std::string contacts_path(Retention mode) {
const std::filesystem::path dir = paths::data_dir();
if (dir.empty() || mode == Retention::None)
@@ -138,6 +166,7 @@ namespace tether::bluetooth {
c["name"] = card.name;
c["tels"] = card.tels;
c["emails"] = card.emails;
+ c["favorite"] = card.favorite;
j["contacts"].push_back(std::move(c));
}
@@ -157,6 +186,7 @@ namespace tether::bluetooth {
card.name = c.value("name", "");
card.tels = c.value("tels", std::vector<std::string>{});
card.emails = c.value("emails", std::vector<std::string>{});
+ card.favorite = c.value("favorite", false);
if (!card.empty())
cards.push_back(std::move(card));
}
diff --git a/src/core/src/bluetooth/pbap_session.cpp b/src/core/src/bluetooth/pbap_session.cpp
index 8a07c4d..2cbf992 100644
--- a/src/core/src/bluetooth/pbap_session.cpp
+++ b/src/core/src/bluetooth/pbap_session.cpp
@@ -74,7 +74,7 @@ namespace tether::bluetooth {
return true;
}
- std::vector<VCard> PbapSession::pull_all(std::string& err, int max) {
+ std::vector<VCard> PbapSession::pull_all(std::string& err, int max, const char* fields) {
std::vector<VCard> contacts;
const std::filesystem::path target = staging_file();
@@ -91,7 +91,7 @@ namespace tether::bluetooth {
// MaxCount, not MAP's MaxListCount.
g_variant_builder_add(&filter, "{sv}", "MaxCount", g_variant_new_uint16(static_cast<guint16>(max)));
// only what parse_vcards reads. kill PHOTO
- g_variant_builder_add(&filter, "{sv}", "Fields", g_variant_new_parsed("['N','FN','TEL','EMAIL']"));
+ g_variant_builder_add(&filter, "{sv}", "Fields", g_variant_new_parsed(fields));
GError* error = nullptr;
GVariant* reply = g_dbus_connection_call_sync(state_->bus,
diff --git a/src/core/src/bluetooth/vcard.cpp b/src/core/src/bluetooth/vcard.cpp
index 8a360e7..007cc9b 100644
--- a/src/core/src/bluetooth/vcard.cpp
+++ b/src/core/src/bluetooth/vcard.cpp
@@ -158,6 +158,16 @@ namespace tether::bluetooth {
current.name = vcard_unescape(value);
else if (name == "N")
structured_name = vcard_name_from_n(vcard_unescape(value));
+ else if (name == "X-IRMC-CALL-DATETIME") {
+ // The call type is the parameter: ";MISSED:" (iOS) or ";TYPE=MISSED:".
+ const std::string head = token.substr(0, token.find(':'));
+ const size_t semi = head.find(';');
+ std::string type = semi == std::string::npos ? std::string{} : trim(head.substr(semi + 1));
+ if (type.rfind("TYPE=", 0) == 0)
+ type.erase(0, 5);
+ current.call_type = type;
+ current.call_time = value;
+ }
}
if (in_card)
diff --git a/src/core/src/net.cpp b/src/core/src/net.cpp
index cd97b82..9c2e2c6 100644
--- a/src/core/src/net.cpp
+++ b/src/core/src/net.cpp
@@ -813,6 +813,7 @@ namespace tether {
for (const auto& card : bluetooth::contact_store().search(query, limit)) {
nlohmann::json entry;
entry["name"] = card.name;
+ entry["favorite"] = card.favorite;
// Namespaced the same way threads are, so an address here can be
// handed straight back as the thread of a bt_send_message.
nlohmann::json addresses = nlohmann::json::array();
@@ -1469,6 +1470,14 @@ namespace tether {
std::string out = payload.dump(-1, ' ', false, nlohmann::json::error_handler_t::replace) + "\n";
write_plain_packet(client_fd, out);
continue;
+ } else if (j.contains("command") && j["command"] == "bt_list_call_history") {
+ nlohmann::json payload;
+ payload["command"] = "bt_call_history";
+ payload["calls"] = bluetooth::g_bt_connections ? bluetooth::g_bt_connections->call_history()
+ : nlohmann::json::array();
+ std::string out = payload.dump(-1, ' ', false, nlohmann::json::error_handler_t::replace) + "\n";
+ write_plain_packet(client_fd, out);
+ continue;
} else if (j.contains("command") && j["command"] == "bt_call_dial" && j.contains("number")) {
std::string err = _("Bluetooth is unavailable.");
nlohmann::json payload;
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index f5c8618..491f299 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -690,6 +690,13 @@ int main(int argc, char** argv) {
tether::broadcast_local_event(event.dump(-1, ' ', false, nlohmann::json::error_handler_t::replace));
});
+ connections.set_call_history_handler([](const nlohmann::json& history) {
+ nlohmann::json event;
+ event["command"] = "bt_call_history";
+ event["calls"] = history;
+ tether::broadcast_local_event(event.dump(-1, ' ', false, nlohmann::json::error_handler_t::replace));
+ });
+
connections.start(tether::bluetooth::supervised_address(bt_config), bt_config.ancs_enabled);
} else {
debug::log(INFO, "Bluetooth unavailable; messages and notifications are disabled");
diff --git a/src/gtk/calls_view.cpp b/src/gtk/calls_view.cpp
index e383db7..f01b3fa 100644
--- a/src/gtk/calls_view.cpp
+++ b/src/gtk/calls_view.cpp
@@ -4,6 +4,7 @@
#include "ui_util.hpp"
#include <tether/i18n.hpp>
+#include <ctime>
#include <string>
namespace tether::ui {
@@ -13,6 +14,7 @@ namespace tether::ui {
struct CallsState {
GtkWidget* status_label = nullptr;
GtkWidget* list = nullptr;
+ GtkWidget* history = nullptr;
GtkWidget* stack = nullptr;
GtkWidget* entry = nullptr;
GtkWidget* dial_button = nullptr;
@@ -20,6 +22,8 @@ namespace tether::ui {
bool visible = false;
bool available = false;
bool audio_routable = false;
+ bool has_calls = false;
+ bool has_history = false;
};
CallsState g_calls;
@@ -28,6 +32,14 @@ namespace tether::ui {
nlohmann::json j;
j["command"] = "bt_list_calls";
daemon_send(j);
+ j["command"] = "bt_list_call_history";
+ daemon_send(j);
+ }
+
+ // Live calls take the page; otherwise recent calls; otherwise the status text.
+ void update_stack() {
+ const char* page = g_calls.has_calls ? "list" : (g_calls.has_history ? "history" : "status");
+ gtk_stack_set_visible_child_name(GTK_STACK(g_calls.stack), page);
}
void send_action(const std::string& action, const std::string& path) {
@@ -63,6 +75,16 @@ namespace tether::ui {
gtk_entry_set_text(GTK_ENTRY(g_calls.entry), "");
}
+ void on_redial_clicked(GtkButton* button, gpointer) {
+ const char* number = static_cast<const char*>(g_object_get_data(G_OBJECT(button), "call-number"));
+ if (!number || !*number)
+ return;
+ nlohmann::json j;
+ j["command"] = "bt_call_dial";
+ j["number"] = number;
+ daemon_send(j);
+ }
+
void attach_path(GtkWidget* button, const std::string& path) {
g_object_set_data_full(G_OBJECT(button), "call-path", g_strdup(path.c_str()), g_free);
}
@@ -185,6 +207,96 @@ namespace tether::ui {
return row;
}
+ // Time of day for today's calls, the date as well for older ones.
+ std::string format_call_time(int64_t epoch) {
+ if (epoch <= 0)
+ return "";
+ const std::time_t t = static_cast<std::time_t>(epoch);
+ const std::time_t now = std::time(nullptr);
+ std::tm tm{}, today{};
+ localtime_r(&t, &tm);
+ localtime_r(&now, &today);
+ const bool same_day = tm.tm_year == today.tm_year && tm.tm_yday == today.tm_yday;
+
+ char buffer[64];
+ // xgettext:no-c-format
+ std::strftime(buffer, sizeof(buffer), same_day ? _("%H:%M") : _("%b %d, %H:%M"), &tm);
+ return buffer;
+ }
+
+ GtkWidget* build_history_row(const nlohmann::json& entry) {
+ const std::string number = entry.value("number", "");
+ const std::string name = entry.value("name", "");
+ const std::string type = entry.value("type", "");
+
+ const char* icon = "call-incoming-symbolic";
+ const char* kind = _("Incoming");
+ if (type == "missed") {
+ icon = "call-missed-symbolic";
+ kind = _("Missed");
+ } else if (type == "dialed") {
+ icon = "call-outgoing-symbolic";
+ kind = _("Outgoing");
+ }
+
+ GtkWidget* row = gtk_list_box_row_new();
+ gtk_list_box_row_set_selectable(GTK_LIST_BOX_ROW(row), FALSE);
+
+ GtkWidget* box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 10);
+ gtk_container_set_border_width(GTK_CONTAINER(box), 10);
+ GtkWidget* image = gtk_image_new_from_icon_name(icon, GTK_ICON_SIZE_LARGE_TOOLBAR);
+ set_accessible_name(image, kind);
+ gtk_box_pack_start(GTK_BOX(box), image, FALSE, FALSE, 0);
+
+ GtkWidget* text = gtk_box_new(GTK_ORIENTATION_VERTICAL, 2);
+ const std::string primary = !name.empty() ? name : (!number.empty() ? number : _("Unknown caller"));
+ GtkWidget* primary_label = gtk_label_new(nullptr);
+ gtk_label_set_markup(GTK_LABEL(primary_label), ("<b>" + escape_markup(primary) + "</b>").c_str());
+ gtk_label_set_xalign(GTK_LABEL(primary_label), 0.0);
+ if (type == "missed")
+ gtk_style_context_add_class(gtk_widget_get_style_context(primary_label), "error");
+ gtk_box_pack_start(GTK_BOX(text), primary_label, FALSE, FALSE, 0);
+
+ std::string secondary = kind;
+ if (!name.empty() && !number.empty())
+ secondary += " - " + number;
+ if (const std::string when = format_call_time(entry.value("timestamp", static_cast<int64_t>(0)));
+ !when.empty())
+ secondary += " - " + when;
+ GtkWidget* secondary_label = gtk_label_new(secondary.c_str());
+ gtk_label_set_xalign(GTK_LABEL(secondary_label), 0.0);
+ gtk_style_context_add_class(gtk_widget_get_style_context(secondary_label), "muted");
+ gtk_box_pack_start(GTK_BOX(text), secondary_label, FALSE, FALSE, 0);
+ gtk_box_pack_start(GTK_BOX(box), text, TRUE, TRUE, 0);
+
+ if (!number.empty()) {
+ GtkWidget* call = gtk_button_new_from_icon_name("call-start-symbolic", GTK_ICON_SIZE_BUTTON);
+ // TRANSLATORS: Button that calls a recent caller back, {} is their name or number.
+ const std::string label = tether::tr_format(_("Call {}"), primary);
+ gtk_widget_set_tooltip_text(call, label.c_str());
+ set_accessible_name(call, label);
+ g_object_set_data_full(G_OBJECT(call), "call-number", g_strdup(number.c_str()), g_free);
+ g_signal_connect(call, "clicked", G_CALLBACK(on_redial_clicked), nullptr);
+ gtk_widget_set_sensitive(call, g_calls.available);
+ gtk_widget_set_valign(call, GTK_ALIGN_CENTER);
+ gtk_box_pack_start(GTK_BOX(box), call, FALSE, FALSE, 0);
+ }
+
+ gtk_container_add(GTK_CONTAINER(row), box);
+ return row;
+ }
+
+ void show_history(const nlohmann::json& event) {
+ clear_list_box(g_calls.history);
+ const auto& calls = event.contains("calls") ? event["calls"] : nlohmann::json();
+ g_calls.has_history = calls.is_array() && !calls.empty();
+ if (g_calls.has_history)
+ for (const auto& entry : calls)
+ gtk_list_box_insert(GTK_LIST_BOX(g_calls.history), build_history_row(entry), -1);
+ gtk_widget_show_all(g_calls.history);
+ update_stack();
+ }
+
void show_calls(const nlohmann::json& event) {
clear_list_box(g_calls.list);
const bool empty = !event.contains("calls") || event["calls"].empty();
@@ -193,7 +305,8 @@ namespace tether::ui {
gtk_list_box_insert(GTK_LIST_BOX(g_calls.list), build_row(call), -1);
}
gtk_widget_show_all(g_calls.list);
- gtk_stack_set_visible_child_name(GTK_STACK(g_calls.stack), empty ? "status" : "list");
+ g_calls.has_calls = !empty;
+ update_stack();
}
} // namespace
@@ -214,6 +327,10 @@ namespace tether::ui {
show_calls(event);
return true;
}
+ if (command == "bt_call_history") {
+ show_history(event);
+ return true;
+ }
if (command == "bt_call_result") {
if (!event.value("success", false))
set_status_main(event.value("message", _("The call could not be placed.")));
@@ -293,6 +410,15 @@ namespace tether::ui {
gtk_container_add(GTK_CONTAINER(scroll), g_calls.list);
gtk_stack_add_named(GTK_STACK(g_calls.stack), scroll, "list");
+ GtkWidget* history_scroll = gtk_scrolled_window_new(nullptr, nullptr);
+ gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(history_scroll), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
+ g_calls.history = gtk_list_box_new();
+ gtk_style_context_add_class(gtk_widget_get_style_context(g_calls.history), "tether-feed");
+ gtk_list_box_set_selection_mode(GTK_LIST_BOX(g_calls.history), GTK_SELECTION_NONE);
+ set_accessible_name(g_calls.history, _("Recent calls"));
+ gtk_container_add(GTK_CONTAINER(history_scroll), g_calls.history);
+ gtk_stack_add_named(GTK_STACK(g_calls.stack), history_scroll, "history");
+
gtk_stack_set_visible_child_name(GTK_STACK(g_calls.stack), "status");
gtk_box_pack_start(GTK_BOX(root), g_calls.stack, TRUE, TRUE, 0);
return root;
diff --git a/src/gtk/contacts_view.cpp b/src/gtk/contacts_view.cpp
index eed7b48..a0a8d52 100644
--- a/src/gtk/contacts_view.cpp
+++ b/src/gtk/contacts_view.cpp
@@ -159,6 +159,12 @@ namespace tether::ui {
GtkWidget* identity = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 14);
gtk_box_pack_start(GTK_BOX(identity), avatar(name), FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(identity), title, TRUE, TRUE, 0);
+ if (contact.value("favorite", false)) {
+ GtkWidget* star = gtk_image_new_from_icon_name("starred-symbolic", GTK_ICON_SIZE_BUTTON);
+ gtk_widget_set_tooltip_text(star, _("Favorite"));
+ set_accessible_name(star, _("Favorite"));
+ gtk_box_pack_start(GTK_BOX(identity), star, FALSE, FALSE, 0);
+ }
gtk_expander_set_label_widget(GTK_EXPANDER(expander), identity);
GtkWidget* addresses = gtk_box_new(GTK_ORIENTATION_VERTICAL, 4);
diff --git a/test/test_vcard.cpp b/test/test_vcard.cpp
index 5ad3870..2756a5f 100644
--- a/test/test_vcard.cpp
+++ b/test/test_vcard.cpp
@@ -151,6 +151,28 @@ TEST(VCard, RecoversFromUnterminatedCard) {
EXPECT_EQ(cards[1].name, "Second");
}
+// iOS sends the call type as a bare parameter, as seen on an iPhone's cch.
+TEST(VCard, ParsesCallHistoryEntry) {
+ auto cards = parse_vcards("BEGIN:VCARD\nVERSION:3.0\nFN:\nN:\nTEL;TYPE=CELL:+15551234567\n"
+ "X-IRMC-CALL-DATETIME;MISSED:20261007T111657\nEND:VCARD\n"
+ "BEGIN:VCARD\nFN:Ada\nX-IRMC-CALL-DATETIME;TYPE=DIALED:20261005T092933\nEND:VCARD\n");
+
+ ASSERT_EQ(cards.size(), 2u);
+ EXPECT_EQ(cards[0].call_type, "MISSED");
+ EXPECT_EQ(cards[0].call_time, "20261007T111657");
+ EXPECT_EQ(cards[0].tels, std::vector<std::string>{"+15551234567"});
+ EXPECT_EQ(cards[1].call_type, "DIALED");
+}
+
+// A withheld caller has no number and no name, only the time.
+TEST(VCard, KeepsCallEntryWithNoNumber) {
+ auto cards = parse_vcards("BEGIN:VCARD\nX-IRMC-CALL-DATETIME;RECEIVED:20261005T122204\nEND:VCARD\n");
+
+ ASSERT_EQ(cards.size(), 1u);
+ EXPECT_TRUE(cards[0].tels.empty());
+ EXPECT_EQ(cards[0].call_type, "RECEIVED");
+}
+
TEST(ContactStore, ResolvesNamesByTelAndEmail) {
ContactStore store;
store.set(parse_vcards("BEGIN:VCARD\nFN:Ada\nTEL:+1 (555) 123-4567\nEMAIL:[email protected]\nEND:VCARD\n"));
@@ -414,3 +436,27 @@ TEST(ContactStore, AnInterruptedMigrationKeepsTheDestinationNotTheSource) {
EXPECT_EQ(loaded.name_for("tel:+15550000009"), "") << "the stale source won over the destination";
EXPECT_FALSE(std::filesystem::exists(scoped.store() / "contacts.json")) << "the plaintext copy is still on disk";
}
+
+// iOS sends fav cards in a different number format than pb.
+TEST(ContactSearch, ListsFavoritesFirstAndNeverCutsThemOff) {
+ auto cards = parse_vcards("BEGIN:VCARD\nFN:Ada Lovelace\nTEL:+1 (555) 123-4567\nEND:VCARD\n"
+ "BEGIN:VCARD\nFN:Grace Hopper\nEMAIL:[email protected]\nEND:VCARD\n"
+ "BEGIN:VCARD\nFN:Alan Turing\nTEL:+15559876543\nEND:VCARD\n");
+ mark_favorites(cards, parse_vcards("BEGIN:VCARD\nFN:Alan\nTEL:+1 555 987 6543\nEND:VCARD\n"));
+ ContactStore store;
+ store.set(std::move(cards));
+
+ EXPECT_EQ(names_of(store.search("", 10)),
+ (std::vector<std::string>{"Alan Turing", "Ada Lovelace", "Grace Hopper"}));
+ EXPECT_EQ(names_of(store.search("", 1)), (std::vector<std::string>{"Alan Turing"}));
+}
+
+TEST(ContactStore, FavoriteSurvivesJsonRoundTrip) {
+ auto cards = parse_vcards("BEGIN:VCARD\nFN:Ada\nTEL:+15551234567\nEND:VCARD\n");
+ mark_favorites(cards, cards);
+ ContactStore store;
+ store.set(std::move(cards));
+
+ ScopedStore scope("favorite-roundtrip");
+ ASSERT_TRUE(deserialize_contacts(serialize_contacts(store)).contacts().at(0).favorite);
+}