Skip to content

Conversation

@AshutoshKhadse23
Copy link

@AshutoshKhadse23 AshutoshKhadse23 commented Jan 12, 2026

Video demo:

Moderation Disabled

disable.mp4

Moderation Enabled

Enable.mp4

Report Message Dialog

Light Mode:

Report Message

Screenshot 2026-01-13 at 10 40 47 AM

Reason Dropdown

Screenshot 2026-01-13 at 10 42 10 AM

Dark Mode:

Report Message

Screenshot 2026-01-13 at 10 59 25 AM

Reason Dropdown

Screenshot 2026-01-13 at 10 59 34 AM

Report Button in Action Sheet

Light Mode

Screenshot 2026-01-13 at 10 43 25 AM

Dark Mode

Screenshot 2026-01-13 at 10 44 45 AM

When Moderation is OFF

Light Mode

Screenshot 2026-01-13 at 10 49 38 AM

Dark Mode

Screenshot 2026-01-13 at 10 49 15 AM

Closes #1972

@alya
Copy link
Collaborator

alya commented Jan 12, 2026

Please clean up your commit history and post again to request a review. See here for guidelines.

You will also need to include still screenshots of all your changes.

This adds the realm_moderation_request_channel_id field which was
introduced at feature level 330. This field stores the ID of the
private channel designated for moderation requests, or -1 if no
channel is configured.

The field is added to:
- InitialSnapshot model for JSON parsing
- RealmStore/RealmStoreImpl for state management
- example_data for test helpers
Add the POST /messages/{message_id}/report endpoint for reporting
messages to moderators. This was introduced at feature level 331.

The endpoint accepts:
- messageId: The ID of the message to report
- reportType: The type of report (spam, harassment, etc.)
- description: Optional additional details
Add the flag icon to be used for the Report message button in the
message action sheet.
@AshutoshKhadse23 AshutoshKhadse23 force-pushed the feature/support-message-reporting-1972 branch from f88ded5 to da1a385 Compare January 13, 2026 04:40
Add a Report message button to the message action sheet that allows
users to report messages to moderators. The button is only visible
when the realm has a moderation request channel configured (channel
ID > 0).

When tapped, a bottom sheet appears allowing the user to:
- Select a report reason (spam, harassment, inappropriate content,
  violates community norms, or other)
- Optionally provide additional details

The UI follows the existing bottom sheet pattern used in the app
(similar to NewDmPicker).

Fixes: zulip#1972
@AshutoshKhadse23 AshutoshKhadse23 force-pushed the feature/support-message-reporting-1972 branch from da1a385 to 723a458 Compare January 13, 2026 05:10
@AshutoshKhadse23
Copy link
Author

AshutoshKhadse23 commented Jan 13, 2026

@alya @gnprice @chrisbobbe , I have cleaned the commits according to the Zulip guide and also added the screenshot for review.
Also, I have been inspired by the design from the new dm sheet. (which is used here)

@AshutoshKhadse23 AshutoshKhadse23 marked this pull request as draft January 16, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support reporting a message

2 participants