mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-28 08:22:31 +00:00
Ignore price for admins of live story.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user