Skip to content

Commit

Permalink
Use enum constant instead of bit flag (#2563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Almighty-Satan committed Oct 12, 2023
1 parent b0b91ef commit 7dc3368
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public M reset(long fields)

if ((fields & HIDE_MEDIA_DOWNLOAD_OPTIONS) == HIDE_MEDIA_DOWNLOAD_OPTIONS)
{
if (channel.getFlags().contains(HIDE_MEDIA_DOWNLOAD_OPTIONS))
if (channel.getFlags().contains(ChannelFlag.HIDE_MEDIA_DOWNLOAD_OPTIONS))
this.flags.add(ChannelFlag.HIDE_MEDIA_DOWNLOAD_OPTIONS);
else
this.flags.remove(ChannelFlag.HIDE_MEDIA_DOWNLOAD_OPTIONS);
Expand Down

0 comments on commit 7dc3368

Please sign in to comment.