mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-02 12:53:08 +00:00
fix sending of the message
This commit is contained in:
parent
d6ff00724f
commit
d99474ab5e
@ -351,8 +351,8 @@ function initRTC({ ui, onReceive }) {
|
||||
};
|
||||
};
|
||||
|
||||
const sendMessage = (message, nick) => {
|
||||
sendChannel.send(JSON.stringify({ message, nick, timestamp: Date.now() }));
|
||||
const sendMessage = (text, nick) => {
|
||||
sendChannel.send(JSON.stringify({ text, nick, timestamp: Date.now() }));
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user