Don't double-set active conversation; wait for backend normalization

This commit is contained in:
Jack Kingsman
2026-01-18 21:32:11 -08:00
parent 7ea5285c80
commit c543df120b
5 changed files with 5 additions and 9 deletions
+1 -5
View File
@@ -57,12 +57,8 @@ export function NewMessageModal({
setError('Name and public key are required');
return;
}
// handleCreateContact sets activeConversation with the backend-normalized key
await onCreateContact(name.trim(), contactKey.trim(), tryHistorical);
onSelectConversation({
type: 'contact',
id: contactKey.trim(),
name: name.trim(),
});
} else if (tab === 'new-room') {
if (!name.trim() || !roomKey.trim()) {
setError('Room name and key are required');