feat(chat): optimistic local echo + moderation delivery notices (v1) - #12
Open
ChronoFinale wants to merge 2 commits into
Open
feat(chat): optimistic local echo + moderation delivery notices (v1)#12ChronoFinale wants to merge 2 commits into
ChronoFinale wants to merge 2 commits into
Conversation
Sender sees their message instantly; the MQTT self-echo is dropped to avoid double-render. A moderation block replaces the echo with a "not delivered to other players" notice; a rewrite shows "delivered as ..." using the relay's publishText. Matches the forward-only v1 relay (POST /:code/chat only).
mute_player called MPAPI._internal.mute_signal unconditionally, but the intake bridge only ships with the v2 moderation UX — on the v1 tree the field is nil and any caller would crash. Local mute works either way; the signal fires only when the bridge exists.
ChronoFinale
force-pushed
the
feat/chat-moderation-v1
branch
from
July 23, 2026 23:48
82a7715 to
4c07484
Compare
ChronoFinale
marked this pull request as ready for review
July 23, 2026 23:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Client half of the chat-moderation v1 rollout — pairs with the relay bridge PR (Balatro-Multiplayer/BalatroMultiplayerAPI-Server#40):
publishTextin the/chatresponse).MPAPI.chat.mute_playerlocal mute, bridge-guarded: the aggregate mute signal only fires when the v2 intake bridge exists, so on the v1 relay it's a clean local-only mute.With the relay's
MODERATION_SERVICE_URLunset, all of this degrades gracefully — messages just deliver as they do today.Stacking
Testing
Tested end-to-end in-game against the live moderation service through the relay bridge: instant echo, block notice, rewrite notice ("suck my cock" → delivered as: suck my cocktail), and preset messages surviving a simulated moderation outage.