Changed toaster messages for queue joining and leaving actions, removed toast that displays updates about the queue.

This commit is contained in:
apetitco 2026-01-13 17:27:22 +01:00 committed by G.C.L. Baptiste
parent 8b2a35dcce
commit a4aa3291cd

View file

@ -95,8 +95,12 @@ async function handleTTT(): Promise<RouteHandlerReturn> {
let curGameX: { id: string, name: string } | null = null; let curGameX: { id: string, name: string } | null = null;
let curGameO: { id: string, name: string } | null = null; let curGameO: { id: string, name: string } | null = null;
socket.on('updateInformation', (e) => showInfo(`UpdateInformation: t=${e.totalUser};q=${e.inQueue}`)); socket.on('queueEvent', (e) => {
socket.on('queueEvent', (e) => showInfo(`QueueEvent: ${e}`)); if (joinQueueBtn.innerText !== QueueState.InQueue)
showInfo('Queue left!');
else
showInfo('Queue joined!');
});
socket.on('newGame', async (gameState) => { socket.on('newGame', async (gameState) => {
showInfo(`newGame: ${gameState.gameId}`) showInfo(`newGame: ${gameState.gameId}`)