Skip to content

Commit

Permalink
fix: add uuids to broadcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Dec 2, 2024
1 parent 7c82683 commit 02e173c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1377,6 +1377,7 @@ class Chat {
data.data,
new ChatUser(data.user),
data.timestamp,
data.uuid,
).into(this);
}

Expand All @@ -1390,6 +1391,7 @@ class Chat {
nick: 'System',
id: -1,
}),
'',
).into(this);
}

Expand Down
4 changes: 2 additions & 2 deletions assets/chat/js/messages/ChatBroadcastMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import ChatEventMessage from './ChatEventMessage';
import MessageTypes from './MessageTypes';

export default class ChatBroadcastMessage extends ChatEventMessage {
constructor(message, user, timestamp = null) {
super(message, timestamp);
constructor(message, user, uuid, timestamp = null) {
super(message, timestamp, uuid);
this.type = MessageTypes.BROADCAST;
this.user = user;

Expand Down

0 comments on commit 02e173c

Please sign in to comment.