2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Moved usernames data management to separated class.

This commit is contained in:
23rd
2022-10-14 18:49:40 +03:00
committed by John Preston
parent c8ae7c7402
commit ad70942d0e
12 changed files with 179 additions and 69 deletions

View File

@@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "api/api_updates.h"
#include "api/api_authorizations.h"
#include "api/api_user_names.h"
#include "api/api_chat_participants.h"
#include "api/api_ringtones.h"
#include "api/api_text_entities.h"
@@ -1888,6 +1889,7 @@ void Updates::feedUpdate(const MTPUpdate &update) {
TextUtilities::SingleLine(last),
user->nameOrPhone,
TextUtilities::SingleLine(username));
user->setUsernames(Api::Usernames::FromTL(d.vusernames()));
}
} break;