浏览代码

rn: start removing defaultURL

master
Saúl Ibarra Corretgé 6 年前
父节点
当前提交
7d8ea85ea0
共有 2 个文件被更改,包括 1 次插入8 次删除
  1. 0
    6
      react/features/app/components/AbstractApp.js
  2. 1
    2
      react/features/app/functions.native.js

+ 0
- 6
react/features/app/components/AbstractApp.js 查看文件

14
  */
14
  */
15
 export type Props = {
15
 export type Props = {
16
 
16
 
17
-    /**
18
-     * The default URL {@code AbstractApp} is to open when not in any
19
-     * conference/room.
20
-     */
21
-    defaultURL: string,
22
-
23
     /**
17
     /**
24
      * XXX Refer to the implementation of loadURLObject: in
18
      * XXX Refer to the implementation of loadURLObject: in
25
      * ios/sdk/src/JitsiMeetView.m for further information.
19
      * ios/sdk/src/JitsiMeetView.m for further information.

+ 1
- 2
react/features/app/functions.native.js 查看文件

2
 
2
 
3
 import { NativeModules } from 'react-native';
3
 import { NativeModules } from 'react-native';
4
 
4
 
5
-import { getAppProp } from '../base/app';
6
 import { toState } from '../base/redux';
5
 import { toState } from '../base/redux';
7
 import { getServerURL } from '../base/settings';
6
 import { getServerURL } from '../base/settings';
8
 
7
 
17
 export function getDefaultURL(stateful: Function | Object) {
16
 export function getDefaultURL(stateful: Function | Object) {
18
     const state = toState(stateful);
17
     const state = toState(stateful);
19
 
18
 
20
-    return getAppProp(state, 'defaultURL') || getServerURL(state);
19
+    return getServerURL(state);
21
 }
20
 }
22
 
21
 
23
 /**
22
 /**

正在加载...
取消
保存