mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +00:00
streams: Add function to get topic for channel events notifications.
Refactored the code to add a function `channel_events_topic_name` to get the topic name for sending notification for channel events.
This commit is contained in:
@@ -263,6 +263,10 @@ def get_user_ids_with_metadata_access_via_permission_groups(stream: Stream) -> s
|
||||
return users_with_metadata_access_dict[stream.id]
|
||||
|
||||
|
||||
def channel_events_topic_name(stream: Stream) -> str:
|
||||
return str(Realm.STREAM_EVENTS_NOTIFICATION_TOPIC_NAME)
|
||||
|
||||
|
||||
@transaction.atomic(savepoint=False)
|
||||
def create_stream_if_needed(
|
||||
realm: Realm,
|
||||
|
||||
Reference in New Issue
Block a user