Fixed add user from shared contact
This commit is contained in:
parent
0fc42cbe0d
commit
2b4d9780ce
@ -1897,8 +1897,10 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|||||||
userFullResult.user.phone = $scope.override.phone_number;
|
userFullResult.user.phone = $scope.override.phone_number;
|
||||||
userFullResult.user.first_name = $scope.override.first_name;
|
userFullResult.user.first_name = $scope.override.first_name;
|
||||||
userFullResult.user.last_name = $scope.override.last_name;
|
userFullResult.user.last_name = $scope.override.last_name;
|
||||||
|
AppUsersManager.saveApiUser(userFullResult.user);
|
||||||
|
} else {
|
||||||
|
AppUsersManager.saveApiUser(userFullResult.user, true);
|
||||||
}
|
}
|
||||||
AppUsersManager.saveApiUser(userFullResult.user, true);
|
|
||||||
AppPhotosManager.savePhoto(userFullResult.profile_photo);
|
AppPhotosManager.savePhoto(userFullResult.profile_photo);
|
||||||
if (userFullResult.profile_photo._ != 'photoEmpty') {
|
if (userFullResult.profile_photo._ != 'photoEmpty') {
|
||||||
$scope.userPhoto.id = userFullResult.profile_photo.id;
|
$scope.userPhoto.id = userFullResult.profile_photo.id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user