Remove hardcoded id

This commit is contained in:
jim3692 2023-03-22 19:56:48 +02:00
parent b34de2c79d
commit 8a5a1f04e1

View file

@ -53,9 +53,9 @@ function JitsiRoom(props) {
}, [mx, roomInfo]); }, [mx, roomInfo]);
useEffect(() => { useEffect(() => {
const topic = roomInfo.roomTimeline?.room.currentState.getStateEvents('m.room.topic')[0]?.getContent().topic
if ( if (
roomInfo.roomTimeline?.room.currentState.getStateEvents('m.room.topic')[0]?.getContent() topic === TOPIC_JITSI_CALL &&
.topic === 'd38dd491fefa1cfffc27f9c57f2bdb4a' &&
!jitsiCallId !jitsiCallId
) { ) {
setJitsiCallId(roomInfo.roomTimeline.roomId); setJitsiCallId(roomInfo.roomTimeline.roomId);