From e5369fdf07a66893d4b61297cca6d93fc8b76909 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sun, 30 Nov 2014 10:21:31 -0800 Subject: [PATCH] Fixed group participant w/o phone --- app/js/controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 6c3c128c..33befcf4 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -2060,7 +2060,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) angular.forEach(userIDs, function (userID) { MtpApiManager.invokeApi('messages.addChatUser', { chat_id: $scope.chatID, - user_id: {_: 'inputUserContact', user_id: userID}, + user_id: AppUsersManager.getUserInput(userID), fwd_limit: 100 }).then(function (addResult) { ApiUpdatesManager.processUpdateMessage({ @@ -2614,7 +2614,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) $scope.group.creating = true; var inputUsers = []; angular.forEach($scope.userIDs, function(userID) { - inputUsers.push({_: 'inputUserContact', user_id: userID}); + inputUsers.push(AppUsersManager.getUserInput(userID)); }); return MtpApiManager.invokeApi('messages.createChat', { title: $scope.group.name,