Просмотр исходного кода

fix(rn,external_api) skip participant notifications when not in a meeting

master
Saúl Ibarra Corretgé 4 лет назад
Родитель
Сommit
8db6e783f1
1 измененных файлов: 9 добавлений и 9 удалений
  1. 9
    9
      react/features/mobile/external-api/middleware.js

+ 9
- 9
react/features/mobile/external-api/middleware.js Просмотреть файл

189
 
189
 
190
     case PARTICIPANT_JOINED:
190
     case PARTICIPANT_JOINED:
191
     case PARTICIPANT_LEFT: {
191
     case PARTICIPANT_LEFT: {
192
+        // Skip these events while not in a conference. SDK users can still retrieve them.
193
+        const { conference } = store.getState()['features/base/conference'];
194
+
195
+        if (!conference) {
196
+            break;
197
+        }
198
+
192
         const { participant } = action;
199
         const { participant } = action;
193
 
200
 
194
         sendEvent(
201
         sendEvent(
195
             store,
202
             store,
196
             action.type,
203
             action.type,
197
-            /* data */ {
198
-                isLocal: participant.local,
199
-                email: participant.email,
200
-                name: participant.name,
201
-                participantId: participant.id,
202
-                displayName: participant.displayName,
203
-                avatarUrl: participant.avatarURL,
204
-                role: participant.role
205
-            });
204
+            _participantToParticipantInfo(participant) /* data */
205
+        );
206
         break;
206
         break;
207
     }
207
     }
208
 
208
 

Загрузка…
Отмена
Сохранить