Fixed dismissing of custom pending suggestions.

This commit is contained in:
23rd 2025-05-20 22:20:19 +03:00
parent f456071c08
commit a532067a93

View file

@ -237,7 +237,9 @@ void PromoSuggestions::invalidate() {
}
std::optional<CustomSuggestion> PromoSuggestions::custom() const {
return _custom;
return (_custom && !_dismissedSuggestions.contains(_custom->suggestion))
? _custom
: std::nullopt;
}
void PromoSuggestions::requestContactBirthdays(Fn<void()> done, bool force) {