diff --git a/public/index.html b/public/index.html index 9a8baac..93f5bbb 100644 --- a/public/index.html +++ b/public/index.html @@ -2994,7 +2994,7 @@ const displayName = display === 'unknown' ? 'unknown' : 'u/' + escapeHtml(display); const initial = display.charAt(0).toUpperCase() || '?'; return ` -
+
${initial}
@@ -3418,7 +3418,7 @@ const statusBadge = hasReply ? 'Got Reply!' : ''; return ` -
+
${initial}
@@ -3444,7 +3444,7 @@ const modalBody = document.getElementById('modal-body'); openConversationUsername = username; - modalTitle.textContent = `Conversation with u/${username}`; + modalTitle.textContent = `Conversation with u/${formatUsernameRaw(username)}`; // If a sync is in flight, set a clearer placeholder up front instead of bare "Loading…". let placeholderText = 'Loading…'; try { diff --git a/src/services/chat/service.ts b/src/services/chat/service.ts index 3a9ba66..adaf630 100644 --- a/src/services/chat/service.ts +++ b/src/services/chat/service.ts @@ -659,6 +659,9 @@ export class ChatService { this.cache.set(merged); this.cache.markDeltaSync(); await this.cache.save(merged); + // Resolve any t2_-prefixed usernames the delta just introduced, so the + // dashboard doesn't show raw Matrix-style IDs for new rooms. + await this.enrichUsernames(); return merged; }