mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Properly avoid realm filter work in non-local-echo case
(imported from commit 9c01109e6900509690841306fb4a23464321de61)
This commit is contained in:
@@ -349,9 +349,10 @@ function python_to_js_filter(pattern, url) {
|
|||||||
|
|
||||||
exports.set_realm_filters = function set_realm_filters(realm_filters) {
|
exports.set_realm_filters = function set_realm_filters(realm_filters) {
|
||||||
// Update the marked parser with our particular set of realm filters
|
// Update the marked parser with our particular set of realm filters
|
||||||
if (!page_params.local_echo) {
|
if (!feature_flags.local_echo) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
realm_filter_map = {};
|
realm_filter_map = {};
|
||||||
realm_filter_list = [];
|
realm_filter_list = [];
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ set_global('page_params', {
|
|||||||
["ZGROUP_(?P<id>[0-9]{2,8}):(?P<zone>[0-9]{1,8})", "https://zone_%(zone)s.zulip.net/ticket/%(id)s"]]
|
["ZGROUP_(?P<id>[0-9]{2,8}):(?P<zone>[0-9]{1,8})", "https://zone_%(zone)s.zulip.net/ticket/%(id)s"]]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
set_global('feature_flags', {local_echo: true});
|
||||||
|
|
||||||
set_global('people_by_name_dict', Dict.from({'Cordelia Lear': {full_name: 'Cordelia Lear', email: 'cordelia@zulip.com'}}));
|
set_global('people_by_name_dict', Dict.from({'Cordelia Lear': {full_name: 'Cordelia Lear', email: 'cordelia@zulip.com'}}));
|
||||||
|
|
||||||
var echo = require('js/echo.js');
|
var echo = require('js/echo.js');
|
||||||
|
|||||||
Reference in New Issue
Block a user