@ -35,8 +35,10 @@ import {
} from './react/features/base/lib-jitsi-meet' ;
import { setVideoAvailable } from './react/features/base/media' ;
import {
localParticipantConnectionStatusChanged ,
localParticipantRoleChanged ,
MAX _DISPLAY _NAME _LENGTH ,
participantConnectionStatusChanged ,
participantJoined ,
participantLeft ,
participantRoleChanged ,
@ -56,6 +58,8 @@ import {
} from './react/features/overlay' ;
import { showDesktopSharingButton } from './react/features/toolbox' ;
const { participantConnectionStatus } = JitsiMeetJS . constants ;
const ConnectionEvents = JitsiMeetJS . events . connection ;
const ConnectionErrors = JitsiMeetJS . errors . connection ;
@ -1542,7 +1546,10 @@ export default {
room . on (
ConferenceEvents . PARTICIPANT _CONN _STATUS _CHANGED ,
id => {
( id , connectionStatus ) => {
APP . store . dispatch ( participantConnectionStatusChanged (
id , connectionStatus ) ) ;
APP . UI . participantConnectionStatusChanged ( id ) ;
} ) ;
room . on ( ConferenceEvents . DOMINANT _SPEAKER _CHANGED , ( id ) => {
@ -1636,10 +1643,16 @@ export default {
}
room . on ( ConferenceEvents . CONNECTION _INTERRUPTED , ( ) => {
APP . store . dispatch ( localParticipantConnectionStatusChanged (
participantConnectionStatus . INTERRUPTED ) ) ;
APP . UI . showLocalConnectionInterrupted ( true ) ;
} ) ;
room . on ( ConferenceEvents . CONNECTION _RESTORED , ( ) => {
APP . store . dispatch ( localParticipantConnectionStatusChanged (
participantConnectionStatus . ACTIVE ) ) ;
APP . UI . showLocalConnectionInterrupted ( false ) ;
} ) ;