Fixed webpage pending

Close #1169
This commit is contained in:
Igor Zhukov 2016-06-27 19:56:39 +03:00
parent b168d2f440
commit 82ed04e09d
2 changed files with 11 additions and 1 deletions

View File

@ -296,7 +296,11 @@ angular.module('myApp.directives', ['myApp.filters'])
$scope.$on('message_edit', function (e, data) {
if (data.mid == message.mid) {
updateMessageBody($scope, element, message);
if (data.justMedia) {
updateMessageMedia($scope, element, message);
} else {
updateMessageBody($scope, element, message);
}
}
});
}

View File

@ -3081,6 +3081,12 @@ angular.module('myApp.services')
_: 'messageMediaWebPage',
webpage: AppWebPagesManager.wrapForHistory(eventData.id)
};
$rootScope.$broadcast('message_edit', {
peerID: getMessagePeer(historyMessage),
id: historyMessage.id,
mid: msgID,
justMedia: true
});
}
})
});