fix impersonation
parent
1c408aa1ba
commit
1efecfa047
|
@ -40,7 +40,6 @@ async function message(e) {
|
|||
const msg = document.getElementById("msg").value;
|
||||
if (!msg) return;
|
||||
window.socket.emit("send_message", {
|
||||
name: window.name,
|
||||
message: msg,
|
||||
thread: window.currentThreadId,
|
||||
});
|
||||
|
|
|
@ -15,7 +15,7 @@ const send_message = async (msg, respond, socket) => {
|
|||
);
|
||||
socket.broadcast.emit("new_message", {
|
||||
id: id.rows[0].id,
|
||||
name: msg.name,
|
||||
name: msg.auth_user.name,
|
||||
message: msg.message,
|
||||
thread: msg.thread,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue