The bug
You cannot report players' chat messages if you have the chat enabled, as the "Chat Messages" button is disabled with the tooltip "This player can't be reported because chat is disabled or blocked". Setting the chat to "Commands Only" or "Hidden" enables the button; the behavior is simply inverted.
Steps to reproduce
Join an online mode server with two accounts. Ensure that the chat is enabled in the client settings.
Send a message from one account.
On the other account, open the Social Interactions menu and click on the "Report player" button. The "Report Player" screen will open.
Move your mouse cursor to the "Chat Messages" button.
Observed behavior
The button will be disabled, and a tooltip will be shown stating that the chat is disabled or blocked.
Expected behavior
The button would be enabled, allowing the player to report the other player's chat message.
Attachments
Comments 3
boolean chatDisabledOrBlocked = minecraft.player.chatAbilities().canReceivePlayerMessages() || socialManager.isBlocked(id);should be obvious whats wrong here 😅