Skip to content

Commit

Permalink
Update src/server/handlers.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dun-sin authored Jan 14, 2024
1 parent be001b0 commit cc44097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const SendMessageHandler = (io: Server, socket: Socket) => {
socket.on(
constants.NEW_EVENT_SEND_MESSAGE,
async (
{ senderId, message, time, chatId: room, containsBadword, replyTo },
{ senderId, message, time, room: chatId, containsBadword, replyTo },
returnMessageToSender
) => {
// Below line is just a failed message simulator for testing purposes.
Expand Down

0 comments on commit cc44097

Please sign in to comment.