mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-20 03:17:47 +00:00
ref(video-layout): consolidate connection status update handling (#3185)
- Instead of having 4 listeners for local connection status updates and 1 for remote, remove two of the redundant listeners. - Instead of calling into 4 separate VideoLayout methods to update a participant's connection status, expose one handler.
This commit is contained in:
@@ -53,7 +53,8 @@ MiddlewareRegistry.register(store => next => action => {
|
||||
// explicit in order to minimize changes to other code.
|
||||
if (typeof action.participant.connectionStatus !== 'undefined') {
|
||||
VideoLayout.onParticipantConnectionStatusChanged(
|
||||
action.participant.id);
|
||||
action.participant.id,
|
||||
action.participant.connectionStatus);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user