From 8a5a1f04e1d1630ef87c61774bad8bf865724b82 Mon Sep 17 00:00:00 2001 From: jim3692 Date: Wed, 22 Mar 2023 19:56:48 +0200 Subject: [PATCH] Remove hardcoded id --- src/app/organisms/room/JitsiRoom.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/organisms/room/JitsiRoom.jsx b/src/app/organisms/room/JitsiRoom.jsx index cf3816d5..1caf9318 100644 --- a/src/app/organisms/room/JitsiRoom.jsx +++ b/src/app/organisms/room/JitsiRoom.jsx @@ -53,9 +53,9 @@ function JitsiRoom(props) { }, [mx, roomInfo]); useEffect(() => { + const topic = roomInfo.roomTimeline?.room.currentState.getStateEvents('m.room.topic')[0]?.getContent().topic if ( - roomInfo.roomTimeline?.room.currentState.getStateEvents('m.room.topic')[0]?.getContent() - .topic === 'd38dd491fefa1cfffc27f9c57f2bdb4a' && + topic === TOPIC_JITSI_CALL && !jitsiCallId ) { setJitsiCallId(roomInfo.roomTimeline.roomId);