Currently, when a message is blocked through Moderation, the backend correctly updates the message state by:
Marking the message as blocked for the sender.
Converting the message to sender-only, preventing receivers from accessing it.
However, this change is only persisted at the data layer. No real-time event is emitted to connected clients, so:
Receivers continue to see the original message until they refresh or reconnect.
Senders do not immediately see the message updated to its blocked state.
The correct state is reflected only after the conversation is re-fetched.
Enhance the Moderation flow to emit a real-time message update event whenever a message is blocked. This event should notify all connected clients so they can immediately update the UI.
Sender: The message should instantly update to the "blocked" state.
Receivers: The message should be removed or updated immediately based on the sender-only visibility rules.
No manual refresh or reconnection should be required for the changes to be reflected.
Please authenticate to join the conversation.
New
π‘ Feature Request
Get notified by email when there are changes.
New
π‘ Feature Request
Get notified by email when there are changes.