mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
topic_mentions: Fix the incorrect large @-mention notification warning.
Earlier, a 'large @-mention notification' warning that pops up for stream wildcard mentions was shown for topic wildcard mentions too, which is incorrect. This commit fixes the incorrect behavior. We no longer show the banner for @-topic mentions. We don't need a banner for @-topic mentions, as those are much less likely to be used without thinking about it and would rarely be spammy for a lot of people. Fixes #27767.
This commit is contained in:
committed by
Tim Abbott
parent
33b164f63a
commit
768be7d46d
@@ -108,8 +108,8 @@ export function initialize() {
|
||||
event.preventDefault();
|
||||
const {$banner_container, is_edit_input} = get_input_info(event);
|
||||
const $row = $(event.target).closest(".message_row");
|
||||
compose_validate.clear_wildcard_warnings($banner_container);
|
||||
compose_validate.set_user_acknowledged_wildcard_flag(true);
|
||||
compose_validate.clear_stream_wildcard_warnings($banner_container);
|
||||
compose_validate.set_user_acknowledged_stream_wildcard_flag(true);
|
||||
if (is_edit_input) {
|
||||
message_edit.save_message_row_edit($row);
|
||||
} else if (event.target.dataset.validationTrigger === "schedule") {
|
||||
@@ -118,7 +118,7 @@ export function initialize() {
|
||||
// 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);
|
||||
compose_validate.set_user_acknowledged_stream_wildcard_flag(true);
|
||||
} else {
|
||||
compose.finish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user