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(
channel,
user->personalChannelMessageId(),
[=] {
crl::guard(container, [=] {
if (const auto i = user->session().data().message(id)) {
rebuild(i, anim::type::normal);
}
});
}));
}, messageChannelWrap->lifetime());
}