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

Show location and working hours in profile.

This commit is contained in:
John Preston
2024-03-05 14:05:48 +04:00
parent 5e82860376
commit ea36345eee
9 changed files with 525 additions and 26 deletions

View File

@@ -280,6 +280,7 @@ const Data::BusinessDetails &UserData::businessDetails() const {
}
void UserData::setBusinessDetails(Data::BusinessDetails details) {
details.hours = details.hours.normalized();
if ((!details && !_businessDetails)
|| (details && _businessDetails && details == *_businessDetails)) {
return;