mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
Don't local echo messages that we can't apply locally to the narrow filter
(imported from commit 372063352f17caa4990195ace4757bb68c53523a)
This commit is contained in:
@@ -136,6 +136,10 @@ exports.try_deliver_locally = function try_deliver_locally(message_request) {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (narrow.active() && !narrow.filter().can_apply_locally()) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
return insert_local_message(message_request, next_local_id);
|
return insert_local_message(message_request, next_local_id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user