Fixed group drafts
This commit is contained in:
parent
1a9ec87a61
commit
28b1b0f92e
@ -636,9 +636,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
}
|
}
|
||||||
var chat = getChat(id)
|
var chat = getChat(id)
|
||||||
if (chat._ == 'chatForbidden' ||
|
if (chat._ == 'chatForbidden' ||
|
||||||
chat._ == 'channelForbidden' ||
|
chat._ == 'channelForbidden' ||
|
||||||
chat.pFlags.kicked ||
|
chat.pFlags.kicked ||
|
||||||
chat.pFlags.left) {
|
chat.pFlags.left) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (chat.pFlags.creator) {
|
if (chat.pFlags.creator) {
|
||||||
@ -4714,7 +4714,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
|
|||||||
console.trace('empty peerID')
|
console.trace('empty peerID')
|
||||||
}
|
}
|
||||||
if (peerID < 0 &&
|
if (peerID < 0 &&
|
||||||
AppChatsManager.hasRights(-peerID, 'send')) {
|
!AppChatsManager.hasRights(-peerID, 'send')) {
|
||||||
draft = false
|
draft = false
|
||||||
}
|
}
|
||||||
if (!draft) {
|
if (!draft) {
|
||||||
|
Loading…
Reference in New Issue
Block a user