Improved draft update on active field

This commit is contained in:
Igor Zhukov 2016-11-28 15:58:36 +03:00
parent c764845c21
commit 9dbb68b053

View File

@ -2249,7 +2249,8 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$on('draft_updated', function (e, draftUpdate) {
if (draftUpdate.peerID == $scope.curDialog.peerID &&
!draftUpdate.local) {
!draftUpdate.local &&
(!$scope.draftMessage.text || $rootScope.idle.isIDLE)) {
getDraft()
}
})