compose: Do not show compose-invite-users row for silent mentions.

This commit is contained in:
Rohitt Vashishtha
2019-02-21 01:15:26 +05:30
committed by Tim Abbott
parent c504fa98aa
commit 62007d3e38
2 changed files with 5 additions and 1 deletions

View File

@@ -779,6 +779,10 @@ exports.initialize = function () {
if (compose_state.get_message_type() !== 'stream') {
return;
}
if (data.is_silent) {
// We don't need to warn in case of silent mentions.
return;
}
// Disable for Zephyr mirroring realms, since we never have subscriber lists there
if (page_params.realm_is_zephyr_mirror_realm) {