fix(contacts): Use contact name for deletion instead of public key

Testing revealed that meshcli's remove_contact command only works
with contact names, not with public keys (neither prefix nor full key).

Example test results:
- remove_contact bd030a71e091 → Unknown contact
- remove_contact bd030a71e091b14e...f7a → Unknown contact
- remove_contact "Progres-SLU-Lubsza-test" → SUCCESS

Changed frontend to send contact name as selector.
This commit is contained in:
MarekWo
2025-12-30 09:56:58 +01:00
parent 0d9fe53e53
commit c0d61650a1
+2 -2
View File
@@ -1042,8 +1042,8 @@ async function confirmDelete() {
}
try {
// Use full public key if available, otherwise fall back to prefix
const selector = contactToDelete.full_public_key || contactToDelete.public_key_prefix;
// Use contact name for deletion (meshcli remove_contact only works with name)
const selector = contactToDelete.name;
const response = await fetch('/api/contacts/delete', {
method: 'POST',