Added and Fixed bug of Blocage a User in the Chat

This commit is contained in:
NigeParis 2025-12-20 16:29:05 +01:00 committed by Maix0
parent 5ee7e7c0b7
commit f49505cc74
3 changed files with 40 additions and 39 deletions

View file

@ -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);