Support user.linked_community_id from layer 229

This commit is contained in:
John Preston
2026-07-07 10:44:33 +04:00
parent 138b937f01
commit 3e003fb090
6 changed files with 27 additions and 3 deletions
+4 -1
View File
@@ -686,6 +686,8 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
result->setFlags((result->flags() & ~flagsMask) | flagsSet);
result->setBotVerifyDetailsIcon(
data.vbot_verification_icon().value_or_empty());
result->setLinkedCommunityId(
data.vlinked_community_id().value_or_empty());
if (!minimal) {
if (storiesState) {
result->setStoriesState(storiesState->hasVideoStream
@@ -5516,7 +5518,8 @@ void Session::serviceNotification(
MTPPeerColor(), // profile_color
MTPint(), // bot_active_users
MTPlong(), // bot_verification_icon
MTPlong())); // send_paid_messages_stars
MTPlong(), // send_paid_messages_stars
MTPlong())); // linked_community_id
}
const auto history = this->history(PeerData::kServiceNotificationsId);
const auto insert = [=] {