Improved draft update on active field
This commit is contained in:
parent
c764845c21
commit
9dbb68b053
@ -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()
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user