repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 97fbbf7bb1cf163e86fea0f46ac1be20072e700e:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 97fbbf7bb1cf163e86fea0f46ac1be20072e700e
Author: James Baicoianu 
Date:   Mon Sep 23 23:25:37 2024 -0700

    Fix undefined room bug when hiding chat for private rooms

diff --git a/media/assets/webui/apps/comms/comms.js b/media/assets/webui/apps/comms/comms.js
index c8e355c98728a57a32980cab547126c6f71c1f77..
index ..130a049e920c20f4e8c989a810eb387a59055c38 100644
--- a/media/assets/webui/apps/comms/comms.js
+++ b/media/assets/webui/apps/comms/comms.js
@@ -209,7 +209,7 @@ elation.elements.define('janus-comms-chat', class extends elation.elements.base
       }
     });
     elation.events.add(janus._target, 'clientprint', (ev) => this.handleClientPrint(ev.data));
-    elation.events.add(this.janusweb, 'room_load_start', (ev) => { this.updateRoom(ev.data); });
+    elation.events.add(this.janusweb, 'room_load_start', (ev) => { this.updateRoom(ev.element); });
     // FIXME - first element with the current design is a  element, but this is fragile if that changes
     this.elements[0].addEventListener('toggle', (ev) => this.elements.chatinput.focus());
     this.updateRoom(room);

-----END OF PAGE-----