2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Added ability to open profile of user by click on userpic in gift box.

This commit is contained in:
23rd
2025-04-18 15:00:18 +03:00
committed by John Preston
parent ecac3a0f16
commit 4f0fa66575

View File

@@ -2276,10 +2276,10 @@ void GiftBox(
&& uniqueDisallowed;
content->add(
object_ptr<CenterWrap<>>(
object_ptr<CenterWrap<UserpicButton>>(
content,
object_ptr<UserpicButton>(content, peer, stUser))
)->setAttribute(Qt::WA_TransparentForMouseEvents);
)->entity()->setClickedCallback([=] { window->showPeerInfo(peer); });
AddSkip(content);
AddSkip(content);