return;
                    }
                    throw new Error(`Failed to join conversation: ${response.status}`);
                }
                
                const data = await response.json();
                
                // Store conversation data in localStorage if not already there
                if (data.conversation) {
                    // Get existing conversations from localStorage
                    let conversations = JSON.parse(localStorage.getItem('nlweb_conversations') || '[]