Fixed draft saving with bot reply in group

This commit is contained in:
Igor Zhukov 2016-07-08 13:31:06 +03:00
parent e45d679e5e
commit 7be7137fdc

View File

@ -2587,9 +2587,15 @@ angular.module('myApp.controllers', ['myApp.i18n'])
}
}
if ($scope.curDialog.peerID) {
var replyToMsgID = $scope.draftMessage.replyToMsgID
if (replyToMsgID &&
$scope.historyState.replyKeyboard &&
$scope.historyState.replyKeyboard.mid == replyToMsgID) {
replyToMsgID = 0;
}
DraftsManager.changeDraft($scope.curDialog.peerID, {
text: newVal,
replyToMsgID: $scope.draftMessage.replyToMsgID
replyToMsgID: replyToMsgID
})
checkInlinePattern(newVal)
}