瀏覽代碼

[RN] Don't hardcode app name when sharing a room

master
Saúl Ibarra Corretgé 7 年之前
父節點
當前提交
b8a629ead6
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      react/features/share-room/middleware.js

+ 2
- 2
react/features/share-room/middleware.js 查看文件

1
 /* @flow */
1
 /* @flow */
2
 
2
 
3
-import { Share } from 'react-native';
3
+import { NativeModules, Share } from 'react-native';
4
 
4
 
5
 import { MiddlewareRegistry } from '../base/redux';
5
 import { MiddlewareRegistry } from '../base/redux';
6
 
6
 
37
     // review before i18n was introduces in react/. However, I reviewed it
37
     // review before i18n was introduces in react/. However, I reviewed it
38
     // afterwards. Translate the display/human-readable strings.
38
     // afterwards. Translate the display/human-readable strings.
39
     const message = `Click the following link to join the meeting: ${roomURL}`;
39
     const message = `Click the following link to join the meeting: ${roomURL}`;
40
-    const title = 'Jitsi Meet Conference';
40
+    const title = `${NativeModules.AppInfo.name} Conference`;
41
     const onFulfilled
41
     const onFulfilled
42
         = (shared: boolean) => dispatch(endShareRoom(roomURL, shared));
42
         = (shared: boolean) => dispatch(endShareRoom(roomURL, shared));
43
 
43
 

Loading…
取消
儲存