From f8b13f48c2fcf8c307f2a5dff6e8f3cb0bdb44f7 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 1 Mar 2025 17:59:20 +0100 Subject: [PATCH] Gift Profile Filter: Support for users (#5650) --- src/global/selectors/payments.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/global/selectors/payments.ts b/src/global/selectors/payments.ts index eccfc72bd..30a35b9fc 100644 --- a/src/global/selectors/payments.ts +++ b/src/global/selectors/payments.ts @@ -8,6 +8,7 @@ import { } from '../helpers'; import { selectChat } from './chats'; import { selectTabState } from './tabs'; +import { selectUser } from './users'; export function selectPaymentInputInvoice( global: T, @@ -76,7 +77,8 @@ export function selectCanUseGiftProfileFilter( global: T, peerId: string, ) { const chat = selectChat(global, peerId); - return chat && isChatChannel(chat); + const user = selectUser(global, peerId); + return Boolean(user) || (chat && isChatChannel(chat)); } export function selectGiftProfileFilter(