mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Slightly improved check of today birthdays suggestion.
This commit is contained in:
@@ -321,12 +321,12 @@ std::vector<int> AppConfig::getIntArray(
|
||||
|
||||
bool AppConfig::suggestionCurrent(const QString &key) const {
|
||||
if (key == u"BIRTHDAY_CONTACTS_TODAY"_q) {
|
||||
if (_dismissedSuggestions.contains(key)) {
|
||||
if (_dismissedSuggestions.contains(key)
|
||||
|| !_account->sessionExists()) {
|
||||
return false;
|
||||
} else {
|
||||
const auto known = _account->sessionExists()
|
||||
? _account->session().data().knownContactBirthdays()
|
||||
: std::vector<UserId>();
|
||||
const auto known
|
||||
= _account->session().data().knownBirthdaysToday();
|
||||
if (!known) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user