mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-03 12:02:34 +02:00
The DM button is now only shown for users who are in the device's contacts list, ensuring that direct messages will actually be delivered. This prevents users from attempting to send DMs to recipients who cannot receive them. Changes: - Added parse_contacts() and get_contacts_list() functions to cli.py for parsing meshcli contacts output - Created /api/contacts endpoint to retrieve contact names from device - Modified frontend app.js to fetch and cache contacts list on page load - Updated createMessageElement() to conditionally render DM button only when sender is in contacts list - Updated README.md with note about DM button visibility requirement 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>