Close modal windows on navigation

Closes #1167
This commit is contained in:
Igor Zhukov 2016-07-05 13:35:19 +03:00
parent 93b22ee049
commit beafd896f9

View File

@ -429,7 +429,6 @@ angular.module('myApp.controllers', ['myApp.i18n'])
var pendingParams = false
var pendingAttachment = false
$scope.$on('history_focus', function (e, peerData) {
$modalStack.dismissAll()
if (peerData.peerString == $scope.curDialog.peer &&
peerData.messageID == $scope.curDialog.messageID &&
!peerData.startParam) {
@ -615,6 +614,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
updateCurDialog()
function updateCurDialog () {
$modalStack.dismissAll()
var addParams = pendingParams || {}
pendingParams = false
addParams.messageID = parseInt(addParams.messageID) || false