I'm unable to find a bug with this. Looking closer at the code I did find another bug that I've fixed now, but it wasn't this. This seems to be a community permission issue where you are in fact receiving the Manage Messages permission inside of that channel, whether from a channel permission override or from your community roles.
Thread
Comment by Hampus