2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Update API scheme & fix monoforum send.

This commit is contained in:
John Preston
2025-05-09 13:46:14 +04:00
parent f8913bf9b9
commit abcf7e3a47
14 changed files with 102 additions and 22 deletions

View File

@@ -341,6 +341,12 @@ ChannelData *ChannelData::monoforumLink() const {
return _monoforumLink;
}
bool ChannelData::requiresMonoforumPeer() const {
return isMonoforum()
&& _monoforumLink
&& (_monoforumLink->amCreator() || _monoforumLink->hasAdminRights());
}
void ChannelData::setMembersCount(int newMembersCount) {
if (_membersCount != newMembersCount) {
if (isMegagroup()