narrow: Rename activate to show.

This make the main call which displays message list sound similar
to `recent_view.show` and `inbox_ui.show`.
This commit is contained in:
Aman Agrawal
2024-06-05 07:36:28 +00:00
committed by Tim Abbott
parent 69cd263312
commit fecb9afa94
14 changed files with 56 additions and 56 deletions

View File

@@ -774,7 +774,7 @@ export function initialize_everything(state_data) {
const sub = sub_store.get(stream_id);
sidebar_ui.hide_all();
popovers.hide_all();
narrow.activate(
narrow.show(
[
{
operator: "stream",
@@ -832,7 +832,7 @@ export function initialize_everything(state_data) {
compose_textarea.initialize();
upload.initialize();
search.initialize({
on_narrow_search: narrow.activate,
on_narrow_search: narrow.show,
});
desktop_notifications.initialize();
audible_notifications.initialize();
@@ -859,7 +859,7 @@ export function initialize_everything(state_data) {
activity.initialize();
activity_ui.initialize({
narrow_by_email(email) {
narrow.activate(
narrow.show(
[
{
operator: "dm",
@@ -886,7 +886,7 @@ export function initialize_everything(state_data) {
topic_list.initialize({
on_topic_click(stream_id, topic) {
const sub = sub_store.get(stream_id);
narrow.activate(
narrow.show(
[
{operator: "channel", operand: sub.name},
{operator: "topic", operand: topic},