mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-07-03 08:21:44 +02:00
03ec3b9e27
Problem: - Contact deletion failed when names had trailing/leading spaces - meshcli's remove_contact requires exact name match - Backend was stripping names before deletion Solution: - Added get_contacts_json() function to fetch exact contact names - Modified delete_contact() to look up exact name before deletion - Uses .contacts command to get names with preserved spacing - Includes fallback to direct deletion if .contacts fails Benefits: - Fixes trailing space deletion issue - Supports lookup by public_key, public_key_prefix, or name - Backward compatible with fallback mechanism - No frontend changes required 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>