mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Due to recent refactoring in 9fb03cb2c7, a user could not
upload avatar if the server uses local upload backend and there
was already an avatar file for that user.
This commit fixes it to just check if there exists a file only
when importing and not when the user is actually trying to
change the avatar.
Fixes #30676.