Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Don't convert bot mentions to silent mentions.
Tim Abbottca591b49ca9a
diff --git a/web/src/compose_validate.js b/web/src/compose_validate.jsindex f0e89bd2d0e..e8f64c01b1b 100644--- a/web/src/compose_validate.js+++ b/web/src/compose_validate.js@@ -844,6 +844,13 @@ export function convert_mentions_to_silent_in_direct_messages(mention_text, fullreturn mention_text;}+ const user = people.get_user_by_id_assert_valid(user_id);+ if (user.is_bot) {+ // Since bots often process mentions as requests for them to+ // do things, prefer non-silent mentions when DMing them.+ return mention_text;+ }+const mention_str = people.get_mention_syntax(full_name, user_id, false);const silent_mention_str = people.get_mention_syntax(full_name, user_id, true);mention_text = mention_text.replace(mention_str, silent_mention_str);