feat(chat): allow users to delete their own messages #20

Merged
nrupard merged 1 commit from feat/user-delete-own-messages into main 2026-04-29 14:53:59 +02:00
Owner

Adds a delete_own_message server function that authenticated users can call to soft-delete messages they authored. Ownership is enforced server-side; mods/admins continue to use the existing delete_message flow 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 MessageDeleted over the existing WebSocket so other clients update without refetch.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Adds a `delete_own_message` server function that authenticated users can call to soft-delete messages they authored. Ownership is enforced server-side; mods/admins continue to use the existing `delete_message` flow 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 `MessageDeleted` over the existing WebSocket so other clients update without refetch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds a `delete_own_message` server function that authenticated users can call to soft-delete messages they authored. Ownership is enforced server-side; mods/admins continue to use the existing `delete_message` flow 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 `MessageDeleted` over the existing WebSocket so other clients update without refetch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
nrupard deleted branch feat/user-delete-own-messages 2026-04-29 14:53:59 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!20
No description provided.