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

Slightly improved check of today birthdays suggestion.

This commit is contained in:
23rd
2025-04-18 19:55:56 +03:00
committed by John Preston
parent 384c540197
commit 3501e4f44d
2 changed files with 5 additions and 7 deletions

View File

@@ -218,9 +218,7 @@ rpl::producer<Ui::SlideWrap<Ui::RpWidget>*> TopBarSuggestionValue(
return;
} else if (session->premiumCanBuy()
&& config->suggestionCurrent(kSugBirthdayContacts.utf8())
&& (!session->data().knownBirthdaysToday()
|| !session->data().knownBirthdaysToday()->size())) {
&& config->suggestionCurrent(kSugBirthdayContacts.utf8())) {
session->data().contactBirthdays(
) | rpl::start_with_next(crl::guard(content, [=] {
const auto users = session->data()