2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Divide structs into several data/ modules.

This commit is contained in:
John Preston
2017-09-26 14:49:16 +03:00
parent f2a5862714
commit ffc20e4492
68 changed files with 4985 additions and 4065 deletions

View File

@@ -1465,7 +1465,9 @@ EntitiesInText EntitiesFromMTP(const QVector<MTPMessageEntity> &entities) {
auto &d = entity.c_messageEntityMentionName();
auto data = [&d] {
if (auto user = App::userLoaded(peerFromUser(d.vuser_id))) {
return MentionNameDataFromFields({ d.vuser_id.v, user->access });
return MentionNameDataFromFields({
d.vuser_id.v,
user->accessHash() });
}
return MentionNameDataFromFields(d.vuser_id.v);
};