mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 18:37:46 +00:00
Some options were missing on the mobile side, notably calltsts enableDisplayNameInStats and enableEmailInStats. Now the same logic will be used in web and mobile.
32 lines
1017 B
JavaScript
32 lines
1017 B
JavaScript
import { isSuboptimalBrowser } from '../base/environment';
|
|
import { translateToHTML } from '../base/i18n';
|
|
import { showWarningNotification } from '../notifications';
|
|
|
|
export * from './functions.any';
|
|
|
|
/**
|
|
* Shows the suboptimal experience notification if needed.
|
|
*
|
|
* @param {Function} dispatch - The dispatch method.
|
|
* @param {Function} t - The translation function.
|
|
* @returns {void}
|
|
*/
|
|
export function maybeShowSuboptimalExperienceNotification(dispatch, t) {
|
|
if (isSuboptimalBrowser()) {
|
|
dispatch(
|
|
showWarningNotification(
|
|
{
|
|
titleKey: 'notify.suboptimalExperienceTitle',
|
|
description: translateToHTML(
|
|
t,
|
|
'notify.suboptimalBrowserWarning',
|
|
{
|
|
recommendedBrowserPageLink: `${window.location.origin}/static/recommendedBrowsers.html`
|
|
}
|
|
)
|
|
}
|
|
)
|
|
);
|
|
}
|
|
}
|