Added 'user_update' event on user rewrite

Closes #414
This commit is contained in:
Igor Zhukov 2014-08-05 13:27:09 +01:00
parent 24d82a5768
commit 2ab990c814

View File

@ -97,6 +97,7 @@ angular.module('myApp.services', [])
} else {
safeReplaceObject(users[apiUser.id], apiUser);
}
$rootScope.$broadcast('user_update', apiUser.id);
if (cachedPhotoLocations[apiUser.id] !== undefined) {
safeReplaceObject(cachedPhotoLocations[apiUser.id], apiUser && apiUser.photo && apiUser.photo.photo_small || {empty: true});