Skip to content

Commit

Permalink
Fix bug where continue messages get colon divider (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
11k authored Mar 4, 2024
1 parent 6d8d870 commit 66ad864
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 @@ -124,7 +124,9 @@ export default class ChatUserMessage extends ChatMessage {
setSlashMe(isSlashMe) {
this.ui.classList.toggle('msg-me', isSlashMe);
const ctrl = this.ui.querySelector('.ctrl');
if (ctrl) ctrl.textContent = isSlashMe ? '' : ': ';
if (ctrl) {
ctrl.textContent = this.slashme || this.continued ? '' : ': ';
}

this.slashme = isSlashMe;
}
Expand Down

0 comments on commit 66ad864

Please sign in to comment.