Added parsing of main profile tab from full peer info.

This commit is contained in:
23rd
2026-07-12 09:35:53 +03:00
parent e97bbafa06
commit da1270af85
5 changed files with 73 additions and 1 deletions
+1
View File
@@ -938,6 +938,7 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update) {
user->setAbout(qs(update.vabout().value_or_empty()));
user->setCommonChatsCount(update.vcommon_chats_count().v);
user->setPeerGiftsCount(update.vstargifts_count().value_or_empty());
user->setMainProfileTab(Data::ParseProfileTab(update.vmain_tab()));
user->checkFolder(update.vfolder_id().value_or_empty());
if (const auto theme = update.vtheme()) {
theme->match([&](const MTPDchatTheme &data) {