mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Added parsing of main profile tab from full peer info.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user