message_events: Ask server if cannot filter locally.

For filters that cannot be applied locally, we ask the server
to determine if the `events_messages` are part of the narrow.

Fixes #21073
This commit is contained in:
Aman Agrawal
2022-02-16 05:57:48 +00:00
committed by Tim Abbott
parent a7f904cdc3
commit bda90ec5ae
2 changed files with 16 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ export function do_unread_count_updates(messages) {
resize.resize_page_components();
}
function add_messages(messages, msg_list, opts) {
export function add_messages(messages, msg_list, opts) {
if (!messages) {
return undefined;
}