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

Added today birthdays to data session.

This commit is contained in:
23rd
2025-04-08 13:41:56 +03:00
committed by John Preston
parent 16a77e2975
commit dc1dc8dffa
2 changed files with 60 additions and 0 deletions

View File

@@ -816,6 +816,11 @@ public:
void sentFromScheduled(SentFromScheduled value);
[[nodiscard]] rpl::producer<SentFromScheduled> sentFromScheduled() const;
[[nodiscard]] rpl::producer<std::vector<UserId>> contactBirthdays(
bool force = false);
[[nodiscard]] std::optional<std::vector<UserId>> knownContactBirthdays(
) const;
void clearLocalStorage();
private:
@@ -1130,6 +1135,10 @@ private:
not_null<ChannelData*>,
mtpRequestId> _viewAsMessagesRequests;
mtpRequestId _contactBirthdaysRequestId = 0;
int _contactBirthdaysLastDayRequest = -1;
std::vector<UserId> _contactBirthdays;
Groups _groups;
const std::unique_ptr<ChatFilters> _chatsFilters;
const std::unique_ptr<CloudThemes> _cloudThemes;