mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fixed possible crash on slow resolving message from personal channel.
This commit is contained in:
parent
a866ba8cdd
commit
c4f0db5bc5
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue