From c4f0db5bc52d9d5af41dd10187fd2f11aec7540a Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 4 May 2024 13:53:40 +0300 Subject: [PATCH] Fixed possible crash on slow resolving message from personal channel. --- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index 26adba1235a8a..4dbd1fd331809 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -1481,11 +1481,11 @@ object_ptr DetailsFiller::setupPersonalChannel( user->session().api().requestMessageData( channel, user->personalChannelMessageId(), - [=] { + crl::guard(container, [=] { if (const auto i = user->session().data().message(id)) { rebuild(i, anim::type::normal); } - }); + })); }, messageChannelWrap->lifetime()); }