Skip to content

Commit

Permalink
squash: Use the correct room JID.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev committed Sep 18, 2024
1 parent 1164523 commit ad726e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ class JigasiIqHandler(
}

val roomNameHeader = request.iq.getHeader("JvbRoomName")
if (roomNameHeader != null && JidCreate.entityBareFrom(roomNameHeader) != conference.mainRoomJid) {
if (roomNameHeader != null && JidCreate.entityBareFrom(roomNameHeader) != conference.roomName) {
return RejectedWithError(request, StanzaError.Condition.forbidden).also {
logger.warn(
"Rejecting request with non-matching JvbRoomName: from=${request.iq.from} " +
", mainRoomJid=${conference.mainRoomJid}, JvbRoomName=$roomNameHeader"
", roomName=${conference.roomName}, JvbRoomName=$roomNameHeader"
)
Stats.rejectedRequests.inc()
}
Expand Down

0 comments on commit ad726e1

Please sign in to comment.