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