2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix custom reactions in channels.

This commit is contained in:
John Preston
2023-12-01 13:00:52 +04:00
parent 28acaf06ad
commit 8e2240d9d9

View File

@@ -181,6 +181,13 @@ PossibleItemReactionsRef LookupPossibleReactions(
}
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)
&& premiumPossible;
}