mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
Add event for bot default_all_public_streams changes
(imported from commit f189fb6692cb8c833cc2a1951ad8a4695cc4c27f)
This commit is contained in:
@@ -1393,6 +1393,12 @@ def do_change_default_all_public_streams(user_profile, value, log=True):
|
||||
log_event({'type': 'user_change_default_all_public_streams',
|
||||
'user': user_profile.email,
|
||||
'value': str(value)})
|
||||
if user_profile.is_bot:
|
||||
send_event(dict(type='realm_bot',
|
||||
op='update',
|
||||
bot=dict(email=user_profile.email,
|
||||
default_all_public_streams=user_profile.default_all_public_streams,)),
|
||||
bot_owner_userids(user_profile))
|
||||
|
||||
def do_change_is_admin(user_profile, is_admin):
|
||||
if is_admin:
|
||||
|
||||
Reference in New Issue
Block a user