|
|
|
@ -456,7 +456,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
@@ -456,7 +456,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|
|
|
|
var pendingAttachment = false |
|
|
|
|
$scope.$on('history_focus', function (e, peerData) { |
|
|
|
|
if (peerData.peerString == $scope.curDialog.peer && |
|
|
|
|
peerData.messageID == $scope.curDialog.messageID && |
|
|
|
|
(peerData.messageID ? peerData.messageID == $scope.curDialog.messageID : !$scope.curDialog.messageID) && |
|
|
|
|
!peerData.startParam) { |
|
|
|
|
if (peerData.messageID) { |
|
|
|
|
$scope.$broadcast('ui_history_change_scroll', true) |
|
|
|
@ -603,10 +603,6 @@ angular.module('myApp.controllers', ['myApp.i18n'])
@@ -603,10 +603,6 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|
|
|
|
$rootScope.$broadcast('history_focus', params) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$scope.scrollChatToBottom = function () { |
|
|
|
|
$scope.$broadcast('ui_history_change_scroll', true) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$scope.logOut = function () { |
|
|
|
|
ErrorService.confirm({type: 'LOGOUT'}).then(function () { |
|
|
|
|
MtpApiManager.logOut().then(function () { |
|
|
|
|