Browse Source

Added 'user_update' event on user rewrite

Closes #414
master
Igor Zhukov 10 years ago
parent
commit
2ab990c814
  1. 1
      app/js/services.js

1
app/js/services.js

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

Loading…
Cancel
Save