mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
compose: Open send later modal when user accepts the warning on scheduling message.
When the user has a wildcard @-mention we show a warning if the stream has more than 15 members. When the user clicks "Yes, schedule" and confirms the intend to schedule the message we open the send later modal to let user choose scheduling time. Fixes #25426.
This commit is contained in:
@@ -480,6 +480,13 @@ export function initialize() {
|
||||
compose_validate.set_user_acknowledged_wildcard_flag(true);
|
||||
if (is_edit_input) {
|
||||
message_edit.save_message_row_edit($row);
|
||||
} else if (event.target.dataset.validationTrigger === "schedule") {
|
||||
popover_menus.open_send_later_menu();
|
||||
|
||||
// We need to set this flag to true here because `open_send_later_menu` validates the message and sets
|
||||
// the user acknowledged wildcard flag back to 'false' and we don't want that to happen because then it
|
||||
// would again show the wildcard warning banner when we actually send the message from 'send-later' modal.
|
||||
compose_validate.set_user_acknowledged_wildcard_flag(true);
|
||||
} else {
|
||||
finish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user