mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-24 14:33:02 +02:00
Fixed dismissing of custom pending suggestions.
This commit is contained in:
parent
f456071c08
commit
a532067a93
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue