mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
Add support for loading a narrows-only embedded Zulip window.
Features: * Only shows messages in the narrow * New messages in the narrow will arrive as they are sent * Works even for streams you're not subscribed to * Automatically subscribes you to a stream on send * Doesn't update your pointer * All searches etc. automatically have the narrow added (imported from commit 2e12b76849f6ca0f53dda5985dad477a04f7bbac)
This commit is contained in:
@@ -288,7 +288,7 @@ def get_client_descriptors_for_realm_all_streams(realm_id):
|
||||
|
||||
def add_to_client_dicts(client):
|
||||
user_clients.setdefault(client.user_profile_id, []).append(client)
|
||||
if client.all_public_streams:
|
||||
if client.all_public_streams or client.narrow != []:
|
||||
realm_clients_all_streams.setdefault(client.realm_id, []).append(client)
|
||||
|
||||
def allocate_client_descriptor(user_profile_id, realm_id, event_types, client_type,
|
||||
|
||||
Reference in New Issue
Block a user