mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
events: Send invites_changed event if user deactivation revokes invites.
revoke_invites_generated_by_user should send invites_changed event if it actually revokes some invitations. This is called in the user deactivatoin codepath.
This commit is contained in:
committed by
Tim Abbott
parent
74d2aea76a
commit
f8b06ed952
@@ -7628,6 +7628,8 @@ def revoke_invites_generated_by_user(user_profile: UserProfile) -> None:
|
||||
confirmation.expiry_date = now
|
||||
|
||||
Confirmation.objects.bulk_update(confirmations_to_revoke, ["expiry_date"])
|
||||
if len(confirmations_to_revoke):
|
||||
notify_invites_changed(realm=user_profile.realm)
|
||||
|
||||
|
||||
def do_create_multiuse_invite_link(
|
||||
|
||||
Reference in New Issue
Block a user