feat(chat): "Delete everywhere" action in the delete dialog (on-chain signal)
Adds a distinct, sync-gated "Delete everywhere" button to the conversation delete dialog: it blocks the thread locally (instant + persistent, so it can't flicker back mid-sync) AND broadcasts a self-addressed Control(del) via sendChatControl so every other device — and a future restore from the seed — hides it too. Carries the peer z-address as the control label so Restore can match by address. The button is disabled until the wallet is fully synced (lite uses its own sync-complete signal, since it never sets tip_known), with a note explaining the on-chain signal + fee. The two local-only modes (Delete / Delete & block) are unchanged. New English strings fall back cleanly until translated (chat_delete_everywhere*, chat_delete_needs_sync). Phase A, step 5 (delete UI). Restore dialog next. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -312,6 +312,10 @@ void I18n::loadBuiltinEnglish()
|
||||
strings_["chat_deleted_toast"] = "Conversation deleted";
|
||||
strings_["chat_delete_failed"] = "Couldn't delete the conversation — nothing was changed.";
|
||||
strings_["chat_blocked_toast"] = "Conversation deleted & blocked";
|
||||
strings_["chat_delete_everywhere"] = "Delete everywhere";
|
||||
strings_["chat_delete_everywhere_note"] = "Also tells your other devices - and a future restore from your seed phrase - to hide this conversation. It sends a tiny on-chain signal (costs the usual chat fee). You can bring it back later from Restore.";
|
||||
strings_["chat_delete_everywhere_toast"] = "Deleting everywhere - signal sent";
|
||||
strings_["chat_delete_needs_sync"] = "Wait until the wallet is fully synced to delete everywhere.";
|
||||
strings_["chat_blocked_manage"] = "Blocked";
|
||||
strings_["chat_blocked_title"] = "Blocked conversations";
|
||||
strings_["chat_blocked_desc"] = "Blocked conversations are removed and their messages are dropped — old and new — until you unblock. Unblocking re-imports the conversation from the chain.";
|
||||
|
||||
Reference in New Issue
Block a user