diff --git a/server/public/home.html b/server/public/home.html
index 13efa92..11f1610 100644
--- a/server/public/home.html
+++ b/server/public/home.html
@@ -1112,7 +1112,7 @@
-
}
}catch(_){} })();
+

Biz Connect
Loading…
@@ -2824,6 +2851,7 @@ async function openConvo(kind,id){
// late content (avatars, images, day separators) settles, unless we deliberately stopped at a "New
// messages" divider. This is the safety net over renderThread()'s own pin.
[0,120,320,600].forEach((d)=>setTimeout(()=>{ if(selected&&selected.kind===kind&&selected.id===id){ const b=document.getElementById('msgs'); if(b && !b.querySelector('.new-sep')) b.scrollTop=b.scrollHeight; } }, d));
+ setTimeout(()=>{ try{ const b=document.getElementById('msgs'); if(b && window.bzDbg) bzDbg('convoOpen',{count:THREAD.length, scrollTop:Math.round(b.scrollTop), scrollH:Math.round(b.scrollHeight), clientH:Math.round(b.clientHeight), atBottom:(b.scrollHeight-b.scrollTop-b.clientHeight)<8, newsep:!!b.querySelector('.new-sep'), vis:b.style.visibility||'visible'}); }catch(_){} }, 700);
}
// ---------- @mentions (group chat) ----------
let mentionItems=[], mentionIdx=0, mentionStart=-1;
diff --git a/server/routes.js b/server/routes.js
index bf933de..2eb4ce3 100644
--- a/server/routes.js
+++ b/server/routes.js
@@ -1004,6 +1004,13 @@ try {
} catch (_) {}
route('GET', '/api/build', (req, res) => json(res, 200, { build: APP_BUILD }));
+// TEMP mobile debug sink: the app POSTs its real runtime state here so we can diagnose device-only issues
+// from the server log (docker logs bizgaze-support) without screenshots. Remove once mobile bugs settle.
+route('POST', '/api/dbg', async (req, res) => {
+ try { const b = await readBody(req); console.log('[MDBG]', JSON.stringify(b)); } catch (_) {}
+ json(res, 200, { ok: true });
+});
+
// Mint a LiveKit join token for the signed-in user + a specific room (the 6-digit meeting code).
// The room-membership/host authorization already happens over the meeting WebSocket; this only
// hands the client a media-plane credential scoped to that room and its own identity.