kingkont 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/renderer/board.js +8 -2
package/package.json
CHANGED
package/renderer/board.js
CHANGED
|
@@ -213,10 +213,16 @@ async function renderWelcomeIdentity() {
|
|
|
213
213
|
let status = null;
|
|
214
214
|
try { status = await window.appChatium?.status?.(); } catch {}
|
|
215
215
|
if (status?.connected) {
|
|
216
|
-
// Приоритет имени: displayName (
|
|
216
|
+
// Приоритет имени: displayName (UI Chatium) → confirmedEmail →
|
|
217
217
|
// email → login → fullName → name → userId.
|
|
218
|
-
const name = status.displayName || status.
|
|
218
|
+
const name = status.displayName || status.confirmedEmail || status.email
|
|
219
|
+
|| status.login || status.fullName || status.name
|
|
220
|
+
|| status.userId || 'KingKont';
|
|
219
221
|
const sub = status.userId && status.userId !== name ? `· ${status.userId.slice(0, 8)}` : '';
|
|
222
|
+
// Диагностика: если ничего кроме userId не пришло — лог в консоль.
|
|
223
|
+
if (!status.displayName && !status.confirmedEmail && !status.email) {
|
|
224
|
+
console.log('[chat-identity] available fields:', status, 'allKeys:', status._allKeys);
|
|
225
|
+
}
|
|
220
226
|
wrap.innerHTML = `
|
|
221
227
|
<span style="color:#5c5; font-size:13px; line-height:1;">●</span>
|
|
222
228
|
<span class="who">${escapeHtml(name)}</span>
|