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

Fixed possible crash on slow resolving message from personal channel.

This commit is contained in:
23rd
2024-05-04 13:53:40 +03:00
committed by John Preston
parent a866ba8cdd
commit c4f0db5bc5

View File

@@ -1481,11 +1481,11 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupPersonalChannel(
user->session().api().requestMessageData( user->session().api().requestMessageData(
channel, channel,
user->personalChannelMessageId(), user->personalChannelMessageId(),
[=] { crl::guard(container, [=] {
if (const auto i = user->session().data().message(id)) { if (const auto i = user->session().data().message(id)) {
rebuild(i, anim::type::normal); rebuild(i, anim::type::normal);
} }
}); }));
}, messageChannelWrap->lifetime()); }, messageChannelWrap->lifetime());
} }