Paid Messages: Remove payment in owned groups (#6805)
This commit is contained in:
parent
cbedc34bf0
commit
305cbf5665
@ -74,6 +74,7 @@ import {
|
|||||||
isUserRightBanned,
|
isUserRightBanned,
|
||||||
splitMessagesForForwarding,
|
splitMessagesForForwarding,
|
||||||
} from '../../helpers';
|
} from '../../helpers';
|
||||||
|
import { isChatAdmin } from '../../helpers/chats';
|
||||||
import { isApiPeerChat, isApiPeerUser } from '../../helpers/peers';
|
import { isApiPeerChat, isApiPeerUser } from '../../helpers/peers';
|
||||||
import {
|
import {
|
||||||
addActionHandler, getActions, getGlobal, getPromiseActions, setGlobal,
|
addActionHandler, getActions, getGlobal, getPromiseActions, setGlobal,
|
||||||
@ -1908,7 +1909,7 @@ export async function getPeerStarsForMessage<T extends GlobalState>(
|
|||||||
if (!peer) return undefined;
|
if (!peer) return undefined;
|
||||||
|
|
||||||
if (isApiPeerChat(peer)) {
|
if (isApiPeerChat(peer)) {
|
||||||
if (selectIsMonoforumAdmin(global, peerId)) {
|
if (isChatAdmin(peer) || selectIsMonoforumAdmin(global, peerId)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
return peer.paidMessagesStars;
|
return peer.paidMessagesStars;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user