ソースを参照

feat(native-participants-pane) removed unused prop and added onPress condition

master
Calin Chitu 4年前
コミット
80b49266ab

+ 11
- 9
react/features/participants-pane/components/native/ContextMenuMeetingParticipantDetails.js ファイルの表示

@@ -7,9 +7,10 @@ import { Divider, Text } from 'react-native-paper';
7 7
 import { useDispatch, useSelector, useStore } from 'react-redux';
8 8
 
9 9
 import { Avatar } from '../../../base/avatar';
10
-import { hideDialog, openDialog } from '../../../base/dialog';
10
+import { hideDialog, openDialog } from '../../../base/dialog/actions';
11 11
 import BottomSheet from '../../../base/dialog/components/native/BottomSheet';
12 12
 import {
13
+    // eslint-disable-next-line no-unused-vars
13 14
     Icon, IconCloseCircle, IconConnectionActive, IconMessage,
14 15
     IconMicrophoneEmptySlash,
15 16
     IconMuteEveryoneElse, IconVideoOff
@@ -159,14 +160,15 @@ export const ContextMenuMeetingParticipantDetails = ({ participant: p }: Props)
159 160
                     { t('toolbar.accessibilityLabel.privateMessage') }
160 161
                 </Text>
161 162
             </TouchableOpacity>
162
-            <TouchableOpacity
163
-                style = { styles.contextMenuItemSection }>
164
-                <Icon
165
-                    size = { 20 }
166
-                    src = { IconConnectionActive }
167
-                    style = { styles.contextMenuItemIcon } />
168
-                <Text style = { styles.contextMenuItemText }>{ t('participantsPane.actions.networkStats') }</Text>
169
-            </TouchableOpacity>
163
+            {/* We need design specs for this*/}
164
+            {/* <TouchableOpacity*/}
165
+            {/*    style = { styles.contextMenuItemSection }>*/}
166
+            {/*    <Icon*/}
167
+            {/*        size = { 20 }*/}
168
+            {/*        src = { IconConnectionActive }*/}
169
+            {/*        style = { styles.contextMenuItemIcon } />*/}
170
+            {/*    <Text style = { styles.contextMenuItemText }>{ t('participantsPane.actions.networkStats') }</Text>*/}
171
+            {/* </TouchableOpacity>*/}
170 172
             <Divider style = { styles.divider } />
171 173
             <VolumeSlider
172 174
                 initialValue = { volume }

+ 1
- 6
react/features/participants-pane/components/native/ContextMenuMore.js ファイルの表示

@@ -24,12 +24,7 @@ type Props = {
24 24
     /**
25 25
      * Array of participant IDs to not mute
26 26
      */
27
-    exclude: Array<string>,
28
-
29
-    /**
30
-     * Participant reference
31
-     */
32
-    participant: Object
27
+    exclude: Array<string>
33 28
 };
34 29
 
35 30
 export const ContextMenuMore = ({ exclude }: Props) => {

+ 1
- 1
react/features/participants-pane/components/native/MeetingParticipantItem.js ファイルの表示

@@ -32,7 +32,7 @@ export const MeetingParticipantItem = ({ participant: p }: Props) => {
32 32
             audioMuteState = { isAudioMuted ? MediaState.Muted : MediaState.Unmuted }
33 33
             isKnockingParticipant = { false }
34 34
             name = { p.name }
35
-            onPress = { openContextMenuDetails }
35
+            onPress = { !p.local && openContextMenuDetails }
36 36
             participant = { p }
37 37
             videoMuteState = { isVideoMuted ? MediaState.Muted : MediaState.Unmuted } />
38 38
     );

+ 0
- 264
react/features/participants-pane/components/native/participants.js ファイルの表示

@@ -1,264 +0,0 @@
1
-export const participants = [
2
-    {
3
-        audioOutputDeviceId: 'default',
4
-        avatarURL: undefined,
5
-        botType: undefined,
6
-        conference: undefined,
7
-        connectionStatus: undefined,
8
-        dominantSpeaker: false,
9
-        email: undefined,
10
-        id: 'd0816677',
11
-        isFakeParticipant: undefined,
12
-        isJigasi: undefined,
13
-        loadableAvatarUrl: undefined,
14
-        local: true,
15
-        name: 'testuser2',
16
-        pinned: false,
17
-        presence: undefined,
18
-        role: 'moderator',
19
-        startWithAudioMuted: true,
20
-        startWithVideoMuted: true
21
-    },
22
-    {
23
-        audioOutputDeviceId: 'default',
24
-        avatarURL: undefined,
25
-        botType: undefined,
26
-        conference: undefined,
27
-        connectionStatus: undefined,
28
-        dominantSpeaker: false,
29
-        email: undefined,
30
-        id: 'a0496597',
31
-        isFakeParticipant: undefined,
32
-        isJigasi: undefined,
33
-        loadableAvatarUrl: undefined,
34
-        local: true,
35
-        name: 'me',
36
-        pinned: false,
37
-        presence: undefined,
38
-        raisedHand: true,
39
-        role: 'participant',
40
-        startWithAudioMuted: true,
41
-        startWithVideoMuted: false
42
-    },
43
-    {
44
-        audioOutputDeviceId: 'default',
45
-        avatarURL: undefined,
46
-        botType: undefined,
47
-        conference: undefined,
48
-        connectionStatus: undefined,
49
-        dominantSpeaker: false,
50
-        email: undefined,
51
-        id: 'b01081018',
52
-        isFakeParticipant: undefined,
53
-        isJigasi: undefined,
54
-        loadableAvatarUrl: undefined,
55
-        local: true,
56
-        name: 'Tom',
57
-        pinned: false,
58
-        presence: undefined,
59
-        role: 'participant',
60
-        startWithAudioMuted: true,
61
-        startWithVideoMuted: false
62
-    },
63
-    {
64
-        audioOutputDeviceId: 'default',
65
-        avatarURL: undefined,
66
-        botType: undefined,
67
-        conference: undefined,
68
-        connectionStatus: undefined,
69
-        dominantSpeaker: false,
70
-        email: undefined,
71
-        id: 'b0aad221e1',
72
-        isFakeParticipant: undefined,
73
-        isJigasi: undefined,
74
-        loadableAvatarUrl: undefined,
75
-        local: true,
76
-        name: 'George',
77
-        pinned: false,
78
-        presence: undefined,
79
-        role: 'participant',
80
-        startWithAudioMuted: true,
81
-        startWithVideoMuted: false
82
-    },
83
-    {
84
-        audioOutputDeviceId: 'default',
85
-        avatarURL: undefined,
86
-        botType: undefined,
87
-        conference: undefined,
88
-        connectionStatus: undefined,
89
-        dominantSpeaker: false,
90
-        email: undefined,
91
-        id: 'c0108301',
92
-        isFakeParticipant: undefined,
93
-        isJigasi: undefined,
94
-        loadableAvatarUrl: undefined,
95
-        local: true,
96
-        name: 'Carlin Teodor',
97
-        pinned: false,
98
-        presence: undefined,
99
-        raisedHand: true,
100
-        role: 'participant',
101
-        startWithAudioMuted: true,
102
-        startWithVideoMuted: false
103
-    },
104
-    {
105
-        audioOutputDeviceId: 'default',
106
-        avatarURL: undefined,
107
-        botType: undefined,
108
-        conference: undefined,
109
-        connectionStatus: undefined,
110
-        dominantSpeaker: false,
111
-        email: undefined,
112
-        id: 'd082114',
113
-        isFakeParticipant: undefined,
114
-        isJigasi: undefined,
115
-        loadableAvatarUrl: undefined,
116
-        local: true,
117
-        name: 'testuser2',
118
-        pinned: false,
119
-        presence: undefined,
120
-        role: 'moderator',
121
-        startWithAudioMuted: true,
122
-        startWithVideoMuted: true
123
-    },
124
-    {
125
-        audioOutputDeviceId: 'default',
126
-        avatarURL: undefined,
127
-        botType: undefined,
128
-        conference: undefined,
129
-        connectionStatus: undefined,
130
-        dominantSpeaker: false,
131
-        email: undefined,
132
-        id: 'd08774533',
133
-        isFakeParticipant: undefined,
134
-        isJigasi: undefined,
135
-        loadableAvatarUrl: undefined,
136
-        local: true,
137
-        name: 'testuser2',
138
-        pinned: false,
139
-        presence: undefined,
140
-        role: 'moderator',
141
-        startWithAudioMuted: true,
142
-        startWithVideoMuted: true
143
-    },
144
-    {
145
-        audioOutputDeviceId: 'default',
146
-        avatarURL: undefined,
147
-        botType: undefined,
148
-        conference: undefined,
149
-        connectionStatus: undefined,
150
-        dominantSpeaker: false,
151
-        email: undefined,
152
-        id: 'd063636',
153
-        isFakeParticipant: undefined,
154
-        isJigasi: undefined,
155
-        loadableAvatarUrl: undefined,
156
-        local: true,
157
-        name: 'testuser2',
158
-        pinned: false,
159
-        presence: undefined,
160
-        role: 'moderator',
161
-        startWithAudioMuted: true,
162
-        startWithVideoMuted: true
163
-    },
164
-    {
165
-        audioOutputDeviceId: 'default',
166
-        avatarURL: undefined,
167
-        botType: undefined,
168
-        conference: undefined,
169
-        connectionStatus: undefined,
170
-        dominantSpeaker: false,
171
-        email: undefined,
172
-        id: 'dadagqrq1',
173
-        isFakeParticipant: undefined,
174
-        isJigasi: undefined,
175
-        loadableAvatarUrl: undefined,
176
-        local: true,
177
-        name: 'testuser2',
178
-        pinned: false,
179
-        presence: undefined,
180
-        role: 'moderator',
181
-        startWithAudioMuted: true,
182
-        startWithVideoMuted: true
183
-    },
184
-    {
185
-        audioOutputDeviceId: 'default',
186
-        avatarURL: undefined,
187
-        botType: undefined,
188
-        conference: undefined,
189
-        connectionStatus: undefined,
190
-        dominantSpeaker: false,
191
-        email: undefined,
192
-        id: 'd0aad',
193
-        isFakeParticipant: undefined,
194
-        isJigasi: undefined,
195
-        loadableAvatarUrl: undefined,
196
-        local: true,
197
-        name: 'testuser2',
198
-        pinned: false,
199
-        presence: undefined,
200
-        role: 'moderator',
201
-        startWithAudioMuted: true,
202
-        startWithVideoMuted: true
203
-    },
204
-    {
205
-        audioOutputDeviceId: 'default',
206
-        avatarURL: undefined,
207
-        botType: undefined,
208
-        conference: undefined,
209
-        connectionStatus: undefined,
210
-        dominantSpeaker: false,
211
-        email: undefined,
212
-        id: 'd0866327',
213
-        isFakeParticipant: undefined,
214
-        isJigasi: undefined,
215
-        loadableAvatarUrl: undefined,
216
-        local: true,
217
-        name: 'testuser2',
218
-        pinned: false,
219
-        presence: undefined,
220
-        role: 'moderator',
221
-        startWithAudioMuted: true,
222
-        startWithVideoMuted: true
223
-    },
224
-    {
225
-        audioOutputDeviceId: 'default',
226
-        avatarURL: undefined,
227
-        botType: undefined,
228
-        conference: undefined,
229
-        connectionStatus: undefined,
230
-        dominantSpeaker: false,
231
-        email: undefined,
232
-        id: 'd08162234',
233
-        isFakeParticipant: undefined,
234
-        isJigasi: undefined,
235
-        loadableAvatarUrl: undefined,
236
-        local: true,
237
-        name: 'testuser2',
238
-        pinned: false,
239
-        presence: undefined,
240
-        role: 'moderator',
241
-        startWithAudioMuted: true,
242
-        startWithVideoMuted: true
243
-    },
244
-    {
245
-        audioOutputDeviceId: 'default',
246
-        avatarURL: undefined,
247
-        botType: undefined,
248
-        conference: undefined,
249
-        connectionStatus: undefined,
250
-        dominantSpeaker: false,
251
-        email: undefined,
252
-        id: 'd04141',
253
-        isFakeParticipant: undefined,
254
-        isJigasi: undefined,
255
-        loadableAvatarUrl: undefined,
256
-        local: true,
257
-        name: 'testuser2',
258
-        pinned: false,
259
-        presence: undefined,
260
-        role: 'moderator',
261
-        startWithAudioMuted: true,
262
-        startWithVideoMuted: true
263
-    }
264
-];

+ 2
- 1
react/features/video-menu/components/native/VolumeSlider.js ファイルの表示

@@ -1,7 +1,8 @@
1 1
 // @flow
2 2
 
3
+import Slider from '@react-native-community/slider';
3 4
 import React, { Component } from 'react';
4
-import { Slider, View } from 'react-native';
5
+import { View } from 'react-native';
5 6
 import { withTheme } from 'react-native-paper';
6 7
 
7 8
 import { Icon, IconVolumeEmpty } from '../../../base/icons';

読み込み中…
キャンセル
保存