Skip to content

Commit

Permalink
Check if tenant is null
Browse files Browse the repository at this point in the history
  • Loading branch information
rpurdel committed Sep 30, 2024
1 parent ea614c5 commit 4adaab6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/jitsi/jigasi/TranscriptionGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,19 @@ private String getCustomTranscriptionServiceClass(String tenant, String roomJid)

if (remoteTranscriptionConfigUrl != null)
{
String tsConfigUrl = remoteTranscriptionConfigUrl + "/" + tenant;
String tsConfigUrl;

// this is JaaS specific
if (remoteTranscriptionConfigUrl.contains("jitsi.net"))
{
tsConfigUrl = remoteTranscriptionConfigUrl + "?conferenceFullName="
+ URLEncoder.encode(roomJid, java.nio.charset.StandardCharsets.UTF_8);
}
else
{
String maybeTenant = tenant == null ? "" : tenant;
tsConfigUrl = remoteTranscriptionConfigUrl + "/" + maybeTenant;
}

transcriberClass = getTranscriberFromRemote(tsConfigUrl);
logger.info("Transcriber class retrieved from remote " + remoteTranscriptionConfigUrl
Expand Down

0 comments on commit 4adaab6

Please sign in to comment.