Skip to content

Commit

Permalink
Fixed possible crash on slow resolving message from personal channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd authored and john-preston committed May 4, 2024
1 parent a866ba8 commit c4f0db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Telegram/SourceFiles/info/profile/info_profile_actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit c4f0db5

Please sign in to comment.