mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fixed possible crash on slow resolving message from personal channel.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user