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

Display date of birth in user profiles.

This commit is contained in:
John Preston
2024-03-22 19:12:11 +04:00
parent c82d7bd909
commit 08ee25deb2
10 changed files with 166 additions and 22 deletions

View File

@@ -1003,6 +1003,14 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
return false;
});
} else {
addInfoOneLine(
BirthdayLabelText(BirthdayValue(user)),
BirthdayValueText(
BirthdayValue(user)
) | Ui::Text::ToWithEntities(),
tr::lng_mediaview_copy(tr::now),
st::infoProfileLabeledUsernamePadding);
tracker.track(result->add(CreateWorkingHours(result, user)));
auto locationText = user->session().changes().peerFlagsValue(