Skip to content

Commit

Permalink
fix: ignore combos
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Jul 1, 2024
1 parent 19d966e commit 6f3fc1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,9 @@ class Chat {

if (isCombo && win.lastmessage?.type === MessageTypes.USER) {
win.removeLastMessage();
const msg = MessageBuilder.emote(textonly, data.timestamp, 2).into(this);
const msg = MessageBuilder.emote(textonly, usr, data.timestamp, 2).into(
this,
);

if (this.user.equalWatching(usr.watching)) {
msg.ui.classList.add('watching-same');
Expand Down
3 changes: 2 additions & 1 deletion assets/chat/js/messages/ChatEmoteMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ function ChatEmoteMessageCount(message) {
const ChatEmoteMessageCountThrottle = throttle(63, ChatEmoteMessageCount);

export default class ChatEmoteMessage extends ChatMessage {
constructor(emote, timestamp, count = 1) {
constructor(emote, user, timestamp, count = 1) {
super(emote, timestamp, MessageTypes.EMOTE);
this.user = user;
this.emotecount = count;
this.emoteFormatter = new EmoteFormatter();
}
Expand Down

0 comments on commit 6f3fc1c

Please sign in to comment.