Ignore price for admins of live story.

This commit is contained in:
John Preston
2025-11-03 15:42:42 +04:00
parent b72deb1a0e
commit 81fc652dc1
8 changed files with 36 additions and 19 deletions
+4 -2
View File
@@ -1852,7 +1852,9 @@ int PeerData::slowmodeSecondsLeft() const {
}
bool PeerData::canManageGroupCall() const {
if (const auto chat = asChat()) {
if (const auto user = asUser()) {
return user->isSelf();
} else if (const auto chat = asChat()) {
return chat->amCreator()
|| (chat->adminRights() & ChatAdminRight::ManageCall);
} else if (const auto group = asChannel()) {
@@ -1862,7 +1864,7 @@ bool PeerData::canManageGroupCall() const {
return group->amCreator()
|| (group->adminRights() & ChatAdminRight::ManageCall);
}
return false;
Unexpected("Peer type in PeerData::canManageGroupCall.");
}
bool PeerData::amMonoforumAdmin() const {