mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Support separate message type group restrictions.
This commit is contained in:
@@ -3509,7 +3509,7 @@ void ApiWrap::sendMessage(MessageToSend &&message) {
|
||||
? action.topicRootId
|
||||
: Data::ForumTopic::kGeneralId;
|
||||
const auto topic = peer->forumTopicFor(topicRootId);
|
||||
if (!(topic ? topic->canWrite() : peer->canWrite())
|
||||
if (!(topic ? Data::CanSendTexts(topic) : Data::CanSendTexts(peer))
|
||||
|| Api::SendDice(message)) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user