|
@@ -854,6 +854,18 @@ $(document).bind('left.muc', function (event, jid) {
|
854
|
854
|
|
855
|
855
|
$(document).bind('presence.muc', function (event, jid, info, pres) {
|
856
|
856
|
|
|
857
|
+ //check if the video bridge is available
|
|
858
|
+ if($(pres).find(">bridgeIsDown").length > 0 && !bridgeIsDown) {
|
|
859
|
+ bridgeIsDown = true;
|
|
860
|
+ messageHandler.showError("Error",
|
|
861
|
+ "Jitsi Videobridge is currently unavailable. Please try again later!");
|
|
862
|
+ }
|
|
863
|
+
|
|
864
|
+ if (info.isFocus)
|
|
865
|
+ {
|
|
866
|
+ return;
|
|
867
|
+ }
|
|
868
|
+
|
857
|
869
|
// Remove old ssrcs coming from the jid
|
858
|
870
|
Object.keys(ssrc2jid).forEach(function (ssrc) {
|
859
|
871
|
if (ssrc2jid[ssrc] == jid) {
|
|
@@ -893,11 +905,6 @@ $(document).bind('presence.muc', function (event, jid, info, pres) {
|
893
|
905
|
if (displayName && displayName.length > 0)
|
894
|
906
|
$(document).trigger('displaynamechanged',
|
895
|
907
|
[jid, displayName]);
|
896
|
|
- if (info.isFocus)
|
897
|
|
- {
|
898
|
|
- return;
|
899
|
|
- }
|
900
|
|
-
|
901
|
908
|
/*if (focus !== null && info.displayName !== null) {
|
902
|
909
|
focus.setEndpointDisplayName(jid, info.displayName);
|
903
|
910
|
}*/
|