From b1ac75444824cfcd76fdb6becbec88230bfd6896 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Fri, 24 Jan 2014 11:15:35 -0500 Subject: [PATCH] Don't local echo messages that we can't apply locally to the narrow filter (imported from commit 372063352f17caa4990195ace4757bb68c53523a) --- static/js/echo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/echo.js b/static/js/echo.js index ecbaacaa8a..6ca2c7729b 100644 --- a/static/js/echo.js +++ b/static/js/echo.js @@ -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); };