Pārlūkot izejas kodu

fix(etherpad) fix Etherpad closing when dominant speaker changes

Fixes: https://github.com/jitsi/jitsi-meet/issues/8109
master
Saúl Ibarra Corretgé 3 gadus atpakaļ
vecāks
revīzija
d9f71ee238

+ 6
- 0
react/features/large-video/actions.any.js Parādīt failu

@@ -28,6 +28,12 @@ import {
28 28
 export function selectParticipantInLargeVideo(participant: ?string) {
29 29
     return (dispatch: Dispatch<any>, getState: Function) => {
30 30
         const state = getState();
31
+
32
+        // Keep Etherpad open.
33
+        if (state['features/etherpad'].editing) {
34
+            return;
35
+        }
36
+
31 37
         const participantId = participant ?? _electParticipantInLargeVideo(state);
32 38
         const largeVideo = state['features/large-video'];
33 39
         const remoteScreenShares = state['features/video-layout'].remoteScreenShares;

+ 2
- 0
react/features/large-video/middleware.js Parādīt failu

@@ -13,6 +13,7 @@ import {
13 13
     TRACK_ADDED,
14 14
     TRACK_REMOVED
15 15
 } from '../base/tracks';
16
+import { TOGGLE_DOCUMENT_EDITING } from '../etherpad/actionTypes';
16 17
 
17 18
 import { selectParticipantInLargeVideo } from './actions';
18 19
 import logger from './logger';
@@ -47,6 +48,7 @@ MiddlewareRegistry.register(store => next => action => {
47 48
     case PARTICIPANT_JOINED:
48 49
     case PARTICIPANT_LEFT:
49 50
     case PIN_PARTICIPANT:
51
+    case TOGGLE_DOCUMENT_EDITING:
50 52
     case TRACK_ADDED:
51 53
     case TRACK_REMOVED:
52 54
         store.dispatch(selectParticipantInLargeVideo());

Notiek ielāde…
Atcelt
Saglabāt