mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
group > megagroup convert added
This commit is contained in:
@@ -4448,7 +4448,7 @@ bool HistoryWidget::canSendMessages(PeerData *peer) const {
|
||||
if (peer->isUser()) {
|
||||
return peer->asUser()->access != UserNoAccess;
|
||||
} else if (peer->isChat()) {
|
||||
return peer->asChat()->amIn();
|
||||
return peer->asChat()->canWrite();
|
||||
} else if (peer->isChannel()) {
|
||||
return peer->asChannel()->amIn() && (peer->asChannel()->canPublish() || !peer->asChannel()->isBroadcast());
|
||||
}
|
||||
|
Reference in New Issue
Block a user