From efc7e91651fff467d122b495cd9a5daff83803d2 Mon Sep 17 00:00:00 2001 From: jp Date: Thu, 13 Aug 2026 20:01:37 +0100 Subject: [PATCH] Use who-called.co.uk for phone lookup in dropdown menus - search by sanitised digits only - applied to both messages and contacts pages --- frontend/src/components/ContactsPage.tsx | 4 ++-- frontend/src/components/MessagesPage.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/ContactsPage.tsx b/frontend/src/components/ContactsPage.tsx index e8a8cd7..561b220 100644 --- a/frontend/src/components/ContactsPage.tsx +++ b/frontend/src/components/ContactsPage.tsx @@ -85,7 +85,7 @@ function DeleteBtn({ id, name }: { id: number; name?: string }) { function ContactMenu({ number, name }: { number?: string; name?: string }) { const [open, setOpen] = useState(false); const digits = (number || "").replace(/[^\d+]/g, ""); - const lookup = encodeURIComponent(name || number || ""); + const lookup = encodeURIComponent(digits); return ( <> @@ -121,7 +121,7 @@ function ContactMenu({ number, name }: { number?: string; name?: string }) { )} @@ -192,7 +192,7 @@ function MsgContactMenu({ number, name, callerid }: { number?: string; name?: st )}