|
|
@ -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}); |
|
|
|