From 4f0fa6657569f1138fc22d07480b31c2d5ab9ce8 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 18 Apr 2025 15:00:18 +0300 Subject: [PATCH] Added ability to open profile of user by click on userpic in gift box. --- Telegram/SourceFiles/boxes/star_gift_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/star_gift_box.cpp b/Telegram/SourceFiles/boxes/star_gift_box.cpp index 1b3397dbf2..8c40b6d1b2 100644 --- a/Telegram/SourceFiles/boxes/star_gift_box.cpp +++ b/Telegram/SourceFiles/boxes/star_gift_box.cpp @@ -2276,10 +2276,10 @@ void GiftBox( && uniqueDisallowed; content->add( - object_ptr>( + object_ptr>( content, object_ptr(content, peer, stUser)) - )->setAttribute(Qt::WA_TransparentForMouseEvents); + )->entity()->setClickedCallback([=] { window->showPeerInfo(peer); }); AddSkip(content); AddSkip(content);