mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 23:43:06 +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 {
|
int PeerData::starsPerMessageChecked() const {
|
||||||
if (const auto channel = asChannel()) {
|
if (const auto channel = asChannel()) {
|
||||||
if (channel->adminRights() || channel->amCreator()) {
|
if (channel->adminRights()
|
||||||
|
|| channel->amCreator()
|
||||||
|
|| amMonoforumAdmin()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue