Преглед изворни кода

fix(rn, appNavigate) make sure tracks are created before prejoin

- Create the tracks early, or there will be on audio on iOS on the first
  unmute this includes the unsafe room name screen
- Skip the unsafe room screen if prejoin is disabled, like web
factor2
Saúl Ibarra Corretgé пре 2 година
родитељ
комит
b1f89276cf
1 измењених фајлова са 12 додато и 13 уклоњено
  1. 12
    13
      react/features/app/actions.native.ts

+ 12
- 13
react/features/app/actions.native.ts Прегледај датотеку

137
         dispatch(setConfig(config));
137
         dispatch(setConfig(config));
138
         dispatch(setRoom(room));
138
         dispatch(setRoom(room));
139
 
139
 
140
-        if (room) {
141
-            if (isUnsafeRoomWarningEnabled(getState()) && isInsecureRoomName(room)) {
142
-                navigateRoot(screen.unsafeRoomWarning);
140
+        if (!room) {
141
+            goBackToRoot(getState(), dispatch);
143
 
142
 
144
-                return;
145
-            }
146
-            dispatch(createDesiredLocalTracks());
147
-            dispatch(clearNotifications());
143
+            return;
144
+        }
148
 
145
 
149
-            const { hidePrejoin } = options;
146
+        dispatch(createDesiredLocalTracks());
147
+        dispatch(clearNotifications());
150
 
148
 
151
-            if (!hidePrejoin && isPrejoinPageEnabled(getState())) {
152
-                navigateRoot(screen.preJoin);
149
+        if (!options.hidePrejoin && isPrejoinPageEnabled(getState())) {
150
+            if (isUnsafeRoomWarningEnabled(getState()) && isInsecureRoomName(room)) {
151
+                navigateRoot(screen.unsafeRoomWarning);
153
             } else {
152
             } else {
154
-                dispatch(connect());
155
-                navigateRoot(screen.conference.root);
153
+                navigateRoot(screen.preJoin);
156
             }
154
             }
157
         } else {
155
         } else {
158
-            goBackToRoot(getState(), dispatch);
156
+            dispatch(connect());
157
+            navigateRoot(screen.conference.root);
159
         }
158
         }
160
     };
159
     };
161
 }
160
 }

Loading…
Откажи
Сачувај