From 37bb6e9b6dec11cc15a3b1df047789ddafba2650 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 11 Jan 2017 13:59:27 +0300 Subject: [PATCH] action:user.removeUploadedPicture --- src/socket.io/user/picture.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/socket.io/user/picture.js b/src/socket.io/user/picture.js index eacc5197aa..0d8a57dd24 100644 --- a/src/socket.io/user/picture.js +++ b/src/socket.io/user/picture.js @@ -99,6 +99,9 @@ module.exports = function (SocketUser) { uploadedpicture: '', picture: userData.uploadedpicture === userData.picture ? '' : userData.picture // if current picture is uploaded picture, reset to user icon }, next); + }, + function (next) { + plugins.fireHook('action:user.removeUploadedPicture', {callerUid: socket.uid, uid: data.uid}); } ], callback); };