mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
compose_validate: Accept scheduling_message argument in show_wildcard_warnings.
Added a new param `scheduling_message` which is passed down to the `show_wildcard_warnings` this argument will help us to do logic relevant to when we are doing validation on scheduling a message.
This commit is contained in:
@@ -914,11 +914,12 @@ export function save_message_row_edit($row) {
|
||||
const already_has_wildcard_mention = message.wildcard_mentioned;
|
||||
if (!already_has_wildcard_mention) {
|
||||
const wildcard_mention = util.find_wildcard_mentions(new_content);
|
||||
const is_stream_message_mentions_valid = compose_validate.validate_stream_message_mentions(
|
||||
const is_stream_message_mentions_valid = compose_validate.validate_stream_message_mentions({
|
||||
stream_id,
|
||||
$banner_container,
|
||||
wildcard_mention,
|
||||
);
|
||||
});
|
||||
|
||||
if (!is_stream_message_mentions_valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user