diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js
index 4e0b7e70..304fc271 100644
--- a/assets/chat/js/chat.js
+++ b/assets/chat/js/chat.js
@@ -1329,14 +1329,14 @@ class Chat {
message = new ChatMessage(messageText, null, MessageTypes.ERROR, true);
break;
}
- case 'muted':
+ case 'muted': {
this.mutedtimer.setTimer(data.muteTimeLeft);
this.mutedtimer.startTimer();
+ const messageText = `You are temporarily muted! You can chat again ${this.mutedtimer.getReadableDuration()}. Subscribe, or donate, to remove the mute immediately.`;
- message = MessageBuilder.error(
- `You are temporarily muted! You can chat again ${this.mutedtimer.getReadableDuration()}. Subscribe to remove the mute immediately.`,
- );
+ message = new ChatMessage(messageText, null, MessageTypes.ERROR, true);
break;
+ }
case 'bannedphrase': {
message = MessageBuilder.error(
`Your message was blocked because it contained this banned phrase: "${data.filtered}".`,