게임·입장 UX와 물리/고지 개선을 반영한다.
비행기(세계여행) 칸 선택 이동, 주사위 무게감, 설정 패널·주사위 초기화, 개인정보 고지·파비콘·탭 제목을 정리하고 런타임 로그는 추적에서 제외한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -11,9 +11,11 @@ import {
|
||||
ensureRoomChat,
|
||||
} from '@/lib/chzzk/chat-session';
|
||||
import {
|
||||
clearDiceQueue,
|
||||
createRoom,
|
||||
findRoomByChannelId,
|
||||
getRoom,
|
||||
notifyRoom,
|
||||
toPublicRoom,
|
||||
} from '@/lib/rooms/store';
|
||||
|
||||
@@ -30,6 +32,7 @@ export async function POST(request: Request) {
|
||||
cheesePerDice?: number;
|
||||
multiplyByCheese?: boolean;
|
||||
maxMultiplier?: number;
|
||||
resetDiceQueue?: boolean;
|
||||
};
|
||||
|
||||
const session = await getRequestAuthSession(request);
|
||||
@@ -92,6 +95,11 @@ export async function POST(request: Request) {
|
||||
|
||||
cancelScheduledDisconnectRoomChat(room.id);
|
||||
|
||||
if (body.resetDiceQueue) {
|
||||
clearDiceQueue(room.id);
|
||||
notifyRoom(room.id);
|
||||
}
|
||||
|
||||
if (room.settings.chzzkEnabled) {
|
||||
try {
|
||||
await ensureRoomChat(room.id);
|
||||
|
||||
Reference in New Issue
Block a user