Skip to content

Commit

Permalink
Handle "inactive" reactions when fetching allowed list
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 21, 2023
1 parent 59213eb commit 23ec691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix_telegram/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ async def get_available_reactions(self) -> set[str]:
self._available_emoji_reactions = {
react.reaction
for react in available_reactions.reactions
if self.is_premium or not react.premium
if not react.inactive and (self.is_premium or not react.premium)
}
self._available_emoji_reactions_hash = available_reactions.hash
self._available_emoji_reactions_fetched = time.monotonic()
Expand Down

0 comments on commit 23ec691

Please sign in to comment.