앱 게임 연동 탭 Riot ID 표: 앱이 유저 목록을 바꾸면(users.updated → state.usersRev) 다시 받고, 고치는 중이 아닌 입력칸은 새 Riot ID 로 맞춤 (탭을 열어 둔 채 자동 갱신된 이름이 보이게) · 목 __gvrMockRename · 시험 · v1.11.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-11-21 07:35:37 +09:00
parent c86c3ee8de
commit 673f2423d5
8 changed files with 33 additions and 7 deletions

View File

@@ -173,6 +173,7 @@ export function createMockGvr(): GvrApi {
},
],
counts: { utterances: 1824, matches: 37 },
usersRev: 0,
excludedUsers: noToken ? [] : [{ id: 'u4', name: '현우' }],
autoStart: false,
};
@@ -252,6 +253,14 @@ export function createMockGvr(): GvrApi {
listeners.forEach((l) => l(snap));
};
// 앱이 Riot ID 를 바꾼 것 흉내 (닉네임 · 태그를 바꾼 사람): 콘솔에서 __gvrMockRename('u1', '새이름#KR9')
(window as any).__gvrMockRename = (userId: string, riotId: string) => {
const u = users.find((x) => x.id === userId);
if (u?.riot[0]) u.riot[0].riotId = riotId;
state.usersRev++;
emit();
};
// 녹음 참가자/대기열이 조금씩 바뀌는 흉내
setInterval(() => {
state.stt.queue = Math.random() < 0.7 ? 0 : Math.floor(Math.random() * 3);