Queue XmppSetAvatarJob when new avatar is uploaded
And let job do nothing in development for now
This commit is contained in:
@@ -36,6 +36,7 @@ class SettingsController < ApplicationController
|
||||
if @user.avatar_new.present?
|
||||
if store_user_avatar
|
||||
LdapManager::UpdateAvatar.call(user: @user)
|
||||
XmppSetAvatarJob.perform_later(user: @user)
|
||||
else
|
||||
@validation_errors = @user.errors
|
||||
render :show, status: :unprocessable_entity and return
|
||||
|
||||
Reference in New Issue
Block a user