mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-07-03 08:21:44 +02:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user