mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 23:13:11 +02:00
Allow admin sending to monoforum for free.
This commit is contained in:
parent
b2d7342b9e
commit
0473374d51
1 changed files with 3 additions and 1 deletions
|
@ -1678,7 +1678,9 @@ int PeerData::starsPerMessage() const {
|
|||
|
||||
int PeerData::starsPerMessageChecked() const {
|
||||
if (const auto channel = asChannel()) {
|
||||
if (channel->adminRights() || channel->amCreator()) {
|
||||
if (channel->adminRights()
|
||||
|| channel->amCreator()
|
||||
|| amMonoforumAdmin()) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue