mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
narrow-banner: Pass filter for showing/picking an empty narrow banner.
We expect to have a message list and therefore a filter when we show or pick an empty narrow banner.
This commit is contained in:
committed by
Tim Abbott
parent
a98c86922a
commit
cb8e67a0e6
@@ -49,7 +49,9 @@ export function initialize(): void {
|
||||
const button_type = $elem.attr("data-reply-button-type");
|
||||
switch (button_type) {
|
||||
case "direct_disabled": {
|
||||
instance.setContent(pick_empty_narrow_banner().title);
|
||||
const narrow_filter = narrow_state.filter();
|
||||
assert(narrow_filter !== undefined);
|
||||
instance.setContent(pick_empty_narrow_banner(narrow_filter).title);
|
||||
return;
|
||||
}
|
||||
case "stream_disabled": {
|
||||
|
||||
Reference in New Issue
Block a user