Browse Source

Fixed forward to the same chat

Closes #1405
master
Igor Zhukov 8 years ago
parent
commit
9962250799
  1. 3
      app/js/controllers.js

3
app/js/controllers.js

@ -457,7 +457,8 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$on('history_focus', function (e, peerData) { $scope.$on('history_focus', function (e, peerData) {
if (peerData.peerString == $scope.curDialog.peer && if (peerData.peerString == $scope.curDialog.peer &&
(peerData.messageID ? peerData.messageID == $scope.curDialog.messageID : !$scope.curDialog.messageID) && (peerData.messageID ? peerData.messageID == $scope.curDialog.messageID : !$scope.curDialog.messageID) &&
!peerData.startParam) { !peerData.startParam &&
!peerData.attachment) {
if (peerData.messageID) { if (peerData.messageID) {
$scope.$broadcast('ui_history_change_scroll', true) $scope.$broadcast('ui_history_change_scroll', true)
} else { } else {

Loading…
Cancel
Save