mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Removed birthday suggestions for self, blocked and deleted accounts.
This commit is contained in:
parent
7aea200860
commit
9411d0781b
1 changed files with 5 additions and 0 deletions
|
@ -4986,6 +4986,11 @@ rpl::producer<UserIds> Session::contactBirthdays(bool force) {
|
|||
data.vday().v,
|
||||
data.vmonth().v,
|
||||
data.vyear().value_or_empty()));
|
||||
if (user->isSelf()
|
||||
|| user->isInaccessible()
|
||||
|| user->isBlocked()) {
|
||||
continue;
|
||||
}
|
||||
if (Data::IsBirthdayToday(user->birthday())) {
|
||||
today.push_back(peerToUser(user->id));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue