Skip to content

Commit 6301519

Browse files
authored
fix: Fix missing properties in response to conference request. (#1262)
1 parent b6010b5 commit 6301519

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

jicofo/src/main/kotlin/org/jitsi/jicofo/xmpp/ConferenceIqHandler.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ class ConferenceIqHandler(
8787
to = query.from
8888
this.room = query.room
8989
focusJid = focusAuthJid
90+
91+
if (authAuthority != null) {
92+
addProperty(ConferenceIq.Property("authentication", "true"))
93+
addProperty(ConferenceIq.Property("externalAuth", authAuthority.isExternal.toString()))
94+
} else {
95+
addProperty(ConferenceIq.Property("authentication", "false"))
96+
}
97+
98+
if (jigasiEnabled) {
99+
addProperty(ConferenceIq.Property("sipGatewayEnabled", "true"))
100+
}
90101
}
91102

92103
logger.info("Conference request for room $room, from ${query.from}, token=${query.token != null}")
@@ -166,17 +177,6 @@ class ConferenceIqHandler(
166177
}
167178
}
168179

169-
// Authentication module enabled?
170-
if (authAuthority != null) {
171-
response.addProperty(ConferenceIq.Property("authentication", "true"))
172-
response.addProperty(ConferenceIq.Property("externalAuth", authAuthority.isExternal.toString()))
173-
} else {
174-
response.addProperty(ConferenceIq.Property("authentication", "false"))
175-
}
176-
177-
if (jigasiEnabled) {
178-
response.addProperty(ConferenceIq.Property("sipGatewayEnabled", "true"))
179-
}
180180
return response
181181
}
182182

0 commit comments

Comments
 (0)