Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
scrub_avatar_image: Don't send event to clients when scrubbing realm.
Prakhar Pratyush14650211acfd
diff --git a/zerver/actions/user_settings.py b/zerver/actions/user_settings.pyindex b11830a7489..41c76c9c7ba 100644--- a/zerver/actions/user_settings.py+++ b/zerver/actions/user_settings.py@@ -415,7 +415,9 @@ def do_change_avatar_fields(def do_scrub_avatar_image(user: UserProfile, *, acting_user: UserProfile | None) -> None:old_version = user.avatar_version- do_change_avatar_fields(user, UserProfile.AVATAR_FROM_GRAVATAR, acting_user=acting_user)+ do_change_avatar_fields(+ user, UserProfile.AVATAR_FROM_GRAVATAR, skip_notify=True, acting_user=acting_user+ )delete_avatar_image(user, old_version)