From 9f7cd79badba0bcdf3b8ec088ea521f740b0b70b Mon Sep 17 00:00:00 2001
From: Armin <armin.felder@osalliance.com>
Date: Tue, 6 Mar 2018 01:25:31 +0100
Subject: [PATCH]  added fix to support fucked up RC 0.60.0 jitis video links

---
 rocketchatserver.cpp | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/rocketchatserver.cpp b/rocketchatserver.cpp
index d42773d..0801ab2 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
-- 
GitLab