Added quitChat in Pong.ts to go to UGAME

This commit is contained in:
NigeParis 2026-01-13 12:55:53 +01:00 committed by Maix0
parent 7e644fe658
commit 75f3c2a769
5 changed files with 12 additions and 9 deletions

View file

@ -14,6 +14,7 @@ import { getUser as getSelfUser, type User } from "@app/auth";
import { isNullish } from "@app/utils";
import client from "@app/api";
import "./pong.css";
import { quitChat } from "@app/chat/chatHelperFunctions/quitChat";
declare module "ft_state" {
interface State {
@ -249,6 +250,7 @@ function pongClient(
switch (res) {
case JoinRes.yes :
showInfo('JoinRes = yes');
quitChat();
break;
case JoinRes.no :
showInfo('JoinRes = no');