Remove hardcoded id
This commit is contained in:
parent
b34de2c79d
commit
8a5a1f04e1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue