mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix custom reactions in channels.
This commit is contained in:
parent
28acaf06ad
commit
8e2240d9d9
1 changed files with 7 additions and 0 deletions
|
@ -181,6 +181,13 @@ PossibleItemReactionsRef LookupPossibleReactions(
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
for (const auto &id : allowed.some) {
|
||||||
|
if (!added.contains(id)) {
|
||||||
|
if (const auto temp = reactions->lookupTemporary(id)) {
|
||||||
|
result.recent.push_back(temp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
result.customAllowed = (allowed.type == AllowedReactionsType::All)
|
result.customAllowed = (allowed.type == AllowedReactionsType::All)
|
||||||
&& premiumPossible;
|
&& premiumPossible;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue