Added quitChat in Pong.ts to go to UGAME
This commit is contained in:
parent
7e644fe658
commit
75f3c2a769
5 changed files with 12 additions and 9 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue