mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 00:46:08 +00:00
Removed birthday suggestions for self, blocked and deleted accounts.
This commit is contained in:
@@ -4986,6 +4986,11 @@ rpl::producer<UserIds> Session::contactBirthdays(bool force) {
|
|||||||
data.vday().v,
|
data.vday().v,
|
||||||
data.vmonth().v,
|
data.vmonth().v,
|
||||||
data.vyear().value_or_empty()));
|
data.vyear().value_or_empty()));
|
||||||
|
if (user->isSelf()
|
||||||
|
|| user->isInaccessible()
|
||||||
|
|| user->isBlocked()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (Data::IsBirthdayToday(user->birthday())) {
|
if (Data::IsBirthdayToday(user->birthday())) {
|
||||||
today.push_back(peerToUser(user->id));
|
today.push_back(peerToUser(user->id));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user