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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user