mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 05:43:07 +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) => {
|
const sendMessage = (text, nick) => {
|
||||||
sendChannel.send(JSON.stringify({ message, nick, timestamp: Date.now() }));
|
sendChannel.send(JSON.stringify({ text, nick, timestamp: Date.now() }));
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user