-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9193 from eVoloshchak/eVoloshchak_googleMeet
Fix issue with google meet not opening on Android
- Loading branch information
Showing
5 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import CONST from '../../CONST'; | ||
import {propTypes, defaultProps} from './videoChatButtonAndMenuPropTypes'; | ||
import BaseVideoChatButtonAndMenu from './BaseVideoChatButtonAndMenu'; | ||
|
||
// On Android creating a new google meet meeting requires the CALL_PHONE permission in some cases | ||
// so we're just opening the google meet app instead, more details: | ||
// https://github.com/Expensify/App/issues/8851#issuecomment-1120236904 | ||
const VideoChatButtonAndMenu = props => ( | ||
<BaseVideoChatButtonAndMenu | ||
googleMeetURL={CONST.GOOGLE_MEET_URL_ANDROID} | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...props} | ||
/> | ||
); | ||
|
||
VideoChatButtonAndMenu.propTypes = propTypes; | ||
VideoChatButtonAndMenu.defaultProps = defaultProps; | ||
VideoChatButtonAndMenu.displayName = 'VideoChatButtonAndMenu'; | ||
export default VideoChatButtonAndMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import CONST from '../../CONST'; | ||
import {propTypes, defaultProps} from './videoChatButtonAndMenuPropTypes'; | ||
import BaseVideoChatButtonAndMenu from './BaseVideoChatButtonAndMenu'; | ||
|
||
const VideoChatButtonAndMenu = props => ( | ||
<BaseVideoChatButtonAndMenu | ||
googleMeetURL={CONST.NEW_GOOGLE_MEET_MEETING_URL} | ||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
{...props} | ||
/> | ||
); | ||
|
||
VideoChatButtonAndMenu.propTypes = propTypes; | ||
VideoChatButtonAndMenu.defaultProps = defaultProps; | ||
VideoChatButtonAndMenu.displayName = 'VideoChatButtonAndMenu'; | ||
export default VideoChatButtonAndMenu; |
20 changes: 20 additions & 0 deletions
20
src/components/VideoChatButtonAndMenu/videoChatButtonAndMenuPropTypes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import PropTypes from 'prop-types'; | ||
import {windowDimensionsPropTypes} from '../withWindowDimensions'; | ||
import {withLocalizePropTypes} from '../withLocalize'; | ||
|
||
const propTypes = { | ||
/** If this is the Concierge chat, we'll open the modal for requesting a setup call instead of showing popover menu */ | ||
isConcierge: PropTypes.bool, | ||
|
||
/** Link to open when user wants to create a new google meet meeting */ | ||
googleMeetURL: PropTypes.string.isRequired, | ||
|
||
...withLocalizePropTypes, | ||
...windowDimensionsPropTypes, | ||
}; | ||
|
||
const defaultProps = { | ||
isConcierge: false, | ||
}; | ||
|
||
export {propTypes, defaultProps}; |