Browse Source

Fixed draft saving with bot reply in group

master
Igor Zhukov 9 years ago
parent
commit
7be7137fdc
  1. 8
      app/js/controllers.js

8
app/js/controllers.js

@ -2587,9 +2587,15 @@ angular.module('myApp.controllers', ['myApp.i18n'])
} }
} }
if ($scope.curDialog.peerID) { 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, { DraftsManager.changeDraft($scope.curDialog.peerID, {
text: newVal, text: newVal,
replyToMsgID: $scope.draftMessage.replyToMsgID replyToMsgID: replyToMsgID
}) })
checkInlinePattern(newVal) checkInlinePattern(newVal)
} }

Loading…
Cancel
Save