Don't local echo messages that we can't apply locally to the narrow filter

(imported from commit 372063352f17caa4990195ace4757bb68c53523a)
This commit is contained in:
Leo Franchi
2014-01-24 11:15:35 -05:00
parent 063484a917
commit b1ac754448

View File

@@ -136,6 +136,10 @@ exports.try_deliver_locally = function try_deliver_locally(message_request) {
return undefined;
}
if (narrow.active() && !narrow.filter().can_apply_locally()) {
return undefined;
}
return insert_local_message(message_request, next_local_id);
};