2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show chat intro in an empty chat.

This commit is contained in:
John Preston
2024-03-21 12:03:02 +04:00
parent 7f4d13c54a
commit 85554d19e4
12 changed files with 194 additions and 293 deletions

View File

@@ -594,15 +594,15 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update) {
}
user->setBusinessDetails(FromMTP(
&user->owner(),
update.vbusiness_work_hours(),
update.vbusiness_location()));
update.vbusiness_location(),
update.vbusiness_intro()));
if (user->isSelf()) {
user->owner().businessInfo().applyAwaySettings(
FromMTP(&user->owner(), update.vbusiness_away_message()));
user->owner().businessInfo().applyGreetingSettings(
FromMTP(&user->owner(), update.vbusiness_greeting_message()));
user->owner().businessInfo().applyChatIntro(
FromMTP(&user->owner(), update.vbusiness_intro()));
}
user->owner().stories().apply(user, update.vstories());