From b31c30b9b6e751a5a87480c84d196b007a59f6b7 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 21 Mar 2024 14:09:52 +0400 Subject: [PATCH] Wait for full user info before intro creation. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 3b3dd87d9..26ca88b58 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -4083,14 +4083,13 @@ void HistoryInner::refreshAboutView() { _history->delegateMixin()->delegate()); } } else if (!historyHeight()) { - if (!_aboutView) { + if (!user->isFullLoaded()) { + session().api().requestFullPeer(user); + } else if (!_aboutView) { _aboutView = std::make_unique( _history, _history->delegateMixin()->delegate()); } - if (!user->isFullLoaded()) { - session().api().requestFullPeer(user); - } } } }