feat: confirm group mentions before sending
AD
6mo ago+59+59+01234567890123456789-7-7-0123456789
This PR adds a configurable confirmation step before sending messages that mention @all or @here.
When the new Message_ConfirmGroupMentions setting is enabled, users are shown a warning modal before the message is sent. If they cancel or close the modal, the message is not sent. If they confirm, the message continues through the normal send flow.
The setting is enabled by default and can be managed from the Message settings section.
Issue(s)
Closes #909
How to test
- Start the app and log in as an admin.
- Go to Administration > Workspace > Settings > Message.
- Make sure Confirm @all and @here mentions is enabled.
- Open any room and type a message containing
@allor@here. - Verify that a confirmation modal is shown before sending.
- Click Cancel or close the modal and verify that the message is not sent.
- Send the message again and click Send anyway.
- Verify that the message is sent normally.
- Disable Confirm @all and @here mentions.
- Send another message containing
@allor@here. - Verify that the message is sent without showing the confirmation modal.
Screenshots
N/A
Summary by CodeRabbit
- New Features
- Added a confirmation modal that prompts users when sending messages containing group mentions (all or here). Users must explicitly confirm before the message is delivered to all participants.
- Added a new admin-configurable setting to enable or disable group mention confirmation for enhanced moderation control.