Skip to content

Commit

Permalink
fix: inline whispers being rendered incorrectly sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Jul 1, 2024
1 parent 19d966e commit 9c1076f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/chat/js/messages/ChatUserMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ export default class ChatUserMessage extends ChatMessage {
this.ui.classList.toggle('msg-me', isSlashMe);
const ctrl = this.ui.querySelector('.ctrl');
if (ctrl) {
ctrl.textContent = this.slashme || this.continued ? '' : ': ';
ctrl.textContent = ': ';
if (this.target) ctrl.textContent = ' whispered: ';
else if (this.slashme || this.continued) ctrl.textContent = '';
}

this.slashme = isSlashMe;
Expand Down

0 comments on commit 9c1076f

Please sign in to comment.