Skip to content

Commit

Permalink
refactor: remove unnecessary staff filtering optimization
Browse files Browse the repository at this point in the history
Not like there'd be more than a dozen staff mentions at a time,
let alone a few thousand
  • Loading branch information
thegamecracks committed Jun 8, 2024
1 parent b374b69 commit 673759b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/theticketbot/cogs/inbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ async def filter_and_update_inbox_staff(
for mention in removed:
await query.remove_inbox_staff(inbox_id, mention)

return [m for m in mentions if not m.startswith("<@&") or m not in removed]
return [m for m in mentions if m not in removed]


class InboxStaffView(discord.ui.View):
Expand Down

0 comments on commit 673759b

Please sign in to comment.