fix sending of the message

This commit is contained in:
weboko 2023-01-25 01:52:23 +01:00
parent d6ff00724f
commit d99474ab5e
No known key found for this signature in database

View File

@ -351,8 +351,8 @@ function initRTC({ ui, onReceive }) {
}; };
}; };
const sendMessage = (message, nick) => { const sendMessage = (text, nick) => {
sendChannel.send(JSON.stringify({ message, nick, timestamp: Date.now() })); sendChannel.send(JSON.stringify({ text, nick, timestamp: Date.now() }));
}; };
return { return {