Browse Source

Improved draft update on active field

master
Igor Zhukov 8 years ago
parent
commit
9dbb68b053
  1. 3
      app/js/controllers.js

3
app/js/controllers.js

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

Loading…
Cancel
Save