mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Three fixes for DM sending after contact delete/re-add: 1. approve_contact() now calls ensure_contacts() to refresh mc.contacts so send_dm can find newly added contacts immediately 2. cli.send_dm() falls back to DB name lookup when mc.contacts misses, preventing the contact name from being passed as a pubkey string 3. approve_contact() re-links orphaned DMs (NULL contact_pubkey from ON DELETE SET NULL) back to the re-added contact New DB methods: get_contact_by_name(), relink_orphaned_dms() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>