2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Excluded non-today birthdays from reminder in top bar from dialogs.

This commit is contained in:
23rd
2025-04-18 12:39:52 +03:00
committed by John Preston
parent 868c7b170e
commit d1898b9a0b
3 changed files with 30 additions and 8 deletions

View File

@@ -835,8 +835,10 @@ public:
[[nodiscard]] rpl::producer<std::vector<UserId>> contactBirthdays(
bool force = false);
[[nodiscard]] std::optional<std::vector<UserId>> knownContactBirthdays(
) const;
[[nodiscard]] auto knownContactBirthdays() const
-> std::optional<std::vector<UserId>>;
[[nodiscard]] auto knownBirthdaysToday() const
-> std::optional<std::vector<UserId>>;
void clearLocalStorage();
@@ -1156,6 +1158,7 @@ private:
mtpRequestId _contactBirthdaysRequestId = 0;
int _contactBirthdaysLastDayRequest = -1;
std::vector<UserId> _contactBirthdays;
std::vector<UserId> _contactBirthdaysToday;
Groups _groups;
const std::unique_ptr<ChatFilters> _chatsFilters;