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:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user