Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

events_register: Set home view for spectators as recent view.

Aman Agrawala96619639c55
diff --git a/zerver/lib/events.py b/zerver/lib/events.py
index e9086802af1..23d837ae731 100644
--- a/zerver/lib/events.py
+++ b/zerver/lib/events.py
@@ -464,6 +464,8 @@ def fetch_initial_state_data(
# ID=0 is not used in real Zulip databases, ensuring this is unique.
id=0,
default_language=spectator_requested_language,
+ # Set home view to recent conversations for spectators regardless of default.
+ web_home_view="recent_topics",
)
if want("realm_user"):
state["raw_users"] = get_users_for_api(