File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -39,24 +39,24 @@ class VideoChatButtonAndMenu extends Component {
39
39
this . toggleVideoChatMenu = this . toggleVideoChatMenu . bind ( this ) ;
40
40
this . measureVideoChatIconPosition = this . measureVideoChatIconPosition . bind ( this ) ;
41
41
this . videoChatIconWrapper = null ;
42
- this . menuItemData = _ . map ( [
42
+ this . menuItemData = [
43
43
{
44
44
icon : ZoomIcon ,
45
45
text : props . translate ( 'videoChatButtonAndMenu.zoom' ) ,
46
- onPress : ( ) => Linking . openURL ( CONST . NEW_ZOOM_MEETING_URL ) ,
46
+ onPress : ( ) => {
47
+ this . toggleVideoChatMenu ( ) ;
48
+ Linking . openURL ( CONST . NEW_ZOOM_MEETING_URL ) ;
49
+ } ,
47
50
} ,
48
51
{
49
52
icon : GoogleMeetIcon ,
50
53
text : props . translate ( 'videoChatButtonAndMenu.googleMeet' ) ,
51
- onPress : ( ) => Linking . openURL ( CONST . NEW_GOOGLE_MEET_MEETING_URL ) ,
54
+ onPress : ( ) => {
55
+ this . toggleVideoChatMenu ( ) ;
56
+ Linking . openURL ( CONST . NEW_GOOGLE_MEET_MEETING_URL ) ;
57
+ } ,
52
58
} ,
53
- ] , item => ( {
54
- ...item ,
55
- onPress : ( ) => {
56
- item . onPress ( ) ;
57
- this . toggleVideoChatMenu ( ) ;
58
- } ,
59
- } ) ) ;
59
+ ] ;
60
60
61
61
this . state = {
62
62
isVideoChatMenuActive : false ,
You can’t perform that action at this time.
0 commit comments