import fs from 'fs'; const filePath = 'C:/X/workspace/jumpa.id/vc/lib/xcu-quantum-decoder.ts'; let content = fs.readFileSync(filePath, 'utf-8'); // Fix the syntax error in xcu-quantum-decoder.ts const target = ` } catch (e) { console.error("[QUANTUM WEBCODECS] Gagal konfigurasi decoder:", e); } } // Notifikasi React untuk merender tile if (this.onParticipantJoined) { this.onParticipantJoined(senderId); } }`; const replacement = ` } catch (e) { console.error("[QUANTUM WEBCODECS] Gagal konfigurasi decoder:", e); } // Notifikasi React untuk merender tile if (this.onParticipantJoined) { this.onParticipantJoined(senderId); } }`; content = content.replace(target, replacement); // Fallback logic if the exact target text was not found if (content.includes('}\n\t}\n\n\n\t\t// Notifikasi React untuk merender tile')) { content = content.replace('}\n\t}\n\n\n\t\t// Notifikasi React untuk merender tile', '}\n\n\t\t// Notifikasi React untuk merender tile'); } fs.writeFileSync(filePath, content, 'utf-8'); const roomPath = 'C:/X/workspace/jumpa.id/vc/components/xcuRoom.tsx'; let roomContent = fs.readFileSync(roomPath, 'utf-8'); // The toggle function wasn't used because the button didn't render correctly. I'll make sure it is added right before the "More" button. const moreButtonStr = `