mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
actions: Split out zerver.actions.video_calls.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 90cae59ea6)
This commit is contained in:
committed by
Tim Abbott
parent
d35bdd312f
commit
500bd04e11
@@ -8736,16 +8736,6 @@ def do_send_realm_reactivation_email(realm: Realm, *, acting_user: Optional[User
|
||||
)
|
||||
|
||||
|
||||
def do_set_zoom_token(user: UserProfile, token: Optional[Dict[str, object]]) -> None:
|
||||
user.zoom_token = token
|
||||
user.save(update_fields=["zoom_token"])
|
||||
send_event(
|
||||
user.realm,
|
||||
dict(type="has_zoom_token", value=token is not None),
|
||||
[user.id],
|
||||
)
|
||||
|
||||
|
||||
def notify_realm_export(user_profile: UserProfile) -> None:
|
||||
# In the future, we may want to send this event to all realm admins.
|
||||
event = dict(type="realm_export", exports=get_realm_exports_serialized(user_profile))
|
||||
|
||||
Reference in New Issue
Block a user