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
@@ -376,7 +376,9 @@ rpl::producer<bool> CanPinMessagesValue(not_null<PeerData*> peer) {
rpl::producer<bool> CanManageGroupCallValue(not_null<PeerData*> peer) {
const auto flag = ChatAdminRight::ManageCall;
if (const auto chat = peer->asChat()) {
if (const auto user = peer->asUser()) {
return rpl::single(user->isSelf());
} else if (const auto chat = peer->asChat()) {
return chat->amCreator()
? (rpl::single(true) | rpl::type_erased())
: AdminRightValue(chat, flag);