From 9962250799bcffd71f852c5a84491985b2af4baa Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Tue, 9 May 2017 19:55:56 +0300 Subject: [PATCH] Fixed forward to the same chat Closes #1405 --- app/js/controllers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 06526e6d..b67e21c5 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -457,7 +457,8 @@ angular.module('myApp.controllers', ['myApp.i18n']) $scope.$on('history_focus', function (e, peerData) { if (peerData.peerString == $scope.curDialog.peer && (peerData.messageID ? peerData.messageID == $scope.curDialog.messageID : !$scope.curDialog.messageID) && - !peerData.startParam) { + !peerData.startParam && + !peerData.attachment) { if (peerData.messageID) { $scope.$broadcast('ui_history_change_scroll', true) } else {