Open the conference with the app locale

This commit is contained in:
Christophe HAMERLING 2020-06-29 16:09:46 +02:00 committed by Saúl Ibarra Corretgé
parent ce588d65e8
commit 5b924fe218
1 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import type { Dispatch } from 'redux';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import i18n from '../../../i18n';
import config from '../../config';
import { getSetting, setEmail, setName } from '../../settings';
@ -201,7 +202,11 @@ class Conference extends Component<Props, State> {
const roomName = url.pathname.split('/').pop();
const host = this._conference.serverURL.replace(/https?:\/\//, '');
const searchParameters = Object.fromEntries(url.searchParams);
const urlParameters = Object.keys(searchParameters).length ? searchParameters : {};
const locale = { lng: i18n.language };
const urlParameters = {
...searchParameters,
...locale
};
const configOverwrite = {
startWithAudioMuted: this.props._startWithAudioMuted,