Fixed channel draft

Closes #1226
This commit is contained in:
Igor Zhukov 2016-11-19 17:31:31 +03:00
parent a1aca53f9a
commit 7b62614a94

View File

@ -4713,6 +4713,10 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (!peerID) {
console.trace('empty peerID')
}
if (peerID < 0 &&
AppChatsManager.hasRights(-peerID, 'send')) {
draft = false
}
if (!draft) {
draft = {
text: '',