diff --git a/rocketchatserver.cpp b/rocketchatserver.cpp index d42773d816cc051c29a8880962dff1219e54fcbc..0801ab20422363b7a665821e7fd820196d78d396 100755 --- a/rocketchatserver.cpp +++ b/rocketchatserver.cpp @@ -1291,7 +1291,20 @@ void RocketChatServerData::joinJitsiCall( const QString &pRoomId ) { if ( Q_LIKELY( mChannels->contains( pRoomId ) ) ) { - QString hash = QCryptographicHash::hash( ( RocketChatServerConfig::uniqueId + pRoomId ).toUtf8(), QCryptographicHash::Md5 ).toHex(); + QString hash; + bool defaultHash = true; + + if ( major != -1 && minor != -1 && patch != -1 ) { + if ( major >= 0 && minor > 60 ) { + hash = "undefined" + pRoomId; + defaultHash = false; + } + } + + if ( defaultHash ) { + hash = QCryptographicHash::hash( ( RocketChatServerConfig::uniqueId + pRoomId ).toUtf8(), QCryptographicHash::Md5 ).toHex(); + } + #if defined(Q_OS_IOS) || defined(Q_OS_ANDROID) QString scheme = QStringLiteral( "org.jitsi.meet://" ); #else