|
|
@ -406,7 +406,7 @@ angular.module('myApp.controllers', []) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!hasMore && !$scope.search.query) { |
|
|
|
if (!hasMore && $scope.search.query) { |
|
|
|
contactsShown = true; |
|
|
|
contactsShown = true; |
|
|
|
|
|
|
|
|
|
|
|
AppUsersManager.getContacts($scope.search.query).then(function (contactsList) { |
|
|
|
AppUsersManager.getContacts($scope.search.query).then(function (contactsList) { |
|
|
@ -612,6 +612,7 @@ angular.module('myApp.controllers', []) |
|
|
|
updateHistoryPeer(); |
|
|
|
updateHistoryPeer(); |
|
|
|
safeReplaceObject($scope.state, {loaded: true}); |
|
|
|
safeReplaceObject($scope.state, {loaded: true}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.history = []; |
|
|
|
angular.forEach(historyResult.history, function (id) { |
|
|
|
angular.forEach(historyResult.history, function (id) { |
|
|
|
$scope.history.push(AppMessagesManager.wrapForHistory(id)); |
|
|
|
$scope.history.push(AppMessagesManager.wrapForHistory(id)); |
|
|
|
}); |
|
|
|
}); |
|
|
|