mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
Adds `avatar.build_user_avatar_widget` to the updates done in `settings_account.update_avatar_change_display` when the user has permission to change/delete their avatar. For the case where a user has their personal account profile settings open while the organization or user's permissions are changed, `user_avatar_widget_created` boolean is added to `settings_account.js` to track whether the widget and handlers have been created so that live updates don't rebuild the existing widget and handlers. Also, updates `avatar.build_user_avatar_widget` to return early if the user cannot change their avatar. This pattern better matches the other instances where we use the direct upload widget for the organization icon and logos.
4.1 KiB
4.1 KiB