Skip to content

Commit

Permalink
[FIX] mail: disable screen-sharing in mobile OS
Browse files Browse the repository at this point in the history
This feature is not available in mobile OS at the time
of this commit [1]:

- Safari on iOS 17.5
- Chrome for Android 127
- Firefox for Android 127

Therefore the button should not be shown, otherwise it
mistakenly gives the impression that user could make
it work by enabling screen-sharing permission which
is not possible on mobile OS.

opw-4108833

[1]: https://caniuse.com/mdn-api_mediadevices_getdisplaymedia

closes odoo#177372

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
  • Loading branch information
alexkuhn committed Aug 22, 2024
1 parent 76d7a64 commit f7ff220
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class CallActionList extends Component {
icon: "fa fa-fw fa-hand-paper-o",
onSelect: (ev) => this.onClickRaiseHand(ev),
});
if (isMobileOS) {
if (!isMobileOS()) {
acts.push({
id: "shareScreen",
name: !this.rtc.state.sendScreen ? _t("Share Screen") : _t("Stop Sharing Screen"),
Expand Down

0 comments on commit f7ff220

Please sign in to comment.