From 0128ec5f69fc0276829162375f703a650a3b7c36 Mon Sep 17 00:00:00 2001 From: NigeParis Date: Thu, 18 Dec 2025 20:28:13 +0100 Subject: [PATCH] Conflicts --- src/chat/src/app.ts | 53 --------------------------------------- src/chat/src/broadcast.ts | 4 --- 2 files changed, 57 deletions(-) diff --git a/src/chat/src/app.ts b/src/chat/src/app.ts index 6fc2cac..f40f88e 100644 --- a/src/chat/src/app.ts +++ b/src/chat/src/app.ts @@ -41,41 +41,6 @@ interface ClientInfo { lastSeen: number; } -<<<<<<< HEAD -======= - -export type blockedUnBlocked = -{ - userState: string, - userTarget: string, - by: string, -}; - - -export type obj = -{ - command: string, - destination: string, - type: string, - user: string, - frontendUserName: string, - frontendUser: string, - token: string, - text: string, - timestamp: number, - SenderWindowID: string, - Sendertext: string, -}; - - - -// function setAboutPlayer(about: string): string { -// if (!about) { -// about = 'Player is good Shape - This is a default description'; -// } -// return about; -// }; ->>>>>>> refs/remotes/origin/nigel/functionBlockMessage export type blockedUnBlocked = { @@ -209,7 +174,6 @@ async function onReady(fastify: FastifyInstance) { -<<<<<<< HEAD // fastify.io.fetchSockets().then((sockets) => { // for (const socket of sockets) { // const clientInfo = clientChat.get(socket.id); @@ -225,23 +189,6 @@ async function onReady(fastify: FastifyInstance) { // } // }); -======= - fastify.io.fetchSockets().then((sockets) => { - for (const socket of sockets) { - const clientInfo = clientChat.get(socket.id); - if (!clientInfo?.user) { - console.log(color.yellow, `Skipping socket ${socket.id} (no user found)`); - continue; - } - console.log('DEBUG: UserIDWindow :', getUserByName(users, clientInfo.user)?.id); - const IDUser = getUserByName(users, clientInfo.user)?.id; - - console.log(filter_Blocked_user(fastify, obj, IDUser?? "")); - - - } - }); ->>>>>>> refs/remotes/origin/nigel/functionBlockMessage diff --git a/src/chat/src/broadcast.ts b/src/chat/src/broadcast.ts index 02db5c2..50fd98b 100644 --- a/src/chat/src/broadcast.ts +++ b/src/chat/src/broadcast.ts @@ -1,7 +1,6 @@ import type { ClientMessage } from './chat_types'; import { clientChat, color } from './app'; import { FastifyInstance } from 'fastify'; -<<<<<<< HEAD import type { BlockedData } from '@shared/database/mixin/blocked'; import { getUserByName } from './getUserByName'; import type { User } from '@shared/database/mixin/user'; @@ -31,9 +30,6 @@ function whoBlockedMe( -======= -import { getUserById } from './getUserById'; ->>>>>>> refs/remotes/origin/nigel/functionBlockMessage export function broadcast(fastify: FastifyInstance, data: ClientMessage, sender?: string) {