feat(chat): allow users to delete their own messages #20
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/user-delete-own-messages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a
delete_own_messageserver function that authenticated users can call to soft-delete messages they authored. Ownership is enforced server-side; mods/admins continue to use the existingdelete_messageflow which logs a moderation action with reason. The new path skips the reason prompt and the mod log since users are acting on their own content.Wires a "delete" button into the room view (own messages) and the DM view, broadcasting
MessageDeletedover the existing WebSocket so other clients update without refetch.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com