Added and Fixed bug of Blocage a User in the Chat
This commit is contained in:
parent
5ee7e7c0b7
commit
f49505cc74
3 changed files with 40 additions and 39 deletions
|
|
@ -325,7 +325,7 @@ function handleChat(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
|
|||
connected(socket);
|
||||
}
|
||||
console.log('stahe eeee :', blockMessage);
|
||||
if (chatWindow && data.message.destination === "" && !blockMessage) {
|
||||
if (chatWindow && data.message.destination === "") {
|
||||
const messageElement = document.createElement("div");
|
||||
messageElement.textContent = `${data.message.user}: ${data.message.text}`;
|
||||
chatWindow.appendChild(messageElement);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue