[RN] Fix passing config options when creating a conference

JitsiConnection.initJitsiConference doesn't automatically pass the global config
options, so grab the config from the Redux store and pass it.
This commit is contained in:
Saúl Ibarra Corretgé 2017-04-07 14:30:22 +02:00 committed by Lyubo Marinov
parent 6f15903019
commit 18a81d7ca0
1 changed files with 3 additions and 1 deletions

View File

@ -253,13 +253,15 @@ export function createConference() {
dispatch(_conferenceWillJoin(room)); dispatch(_conferenceWillJoin(room));
// TODO Take options from config. const { config } = state['features/base/lib-jitsi-meet'];
const conference const conference
= connection.initJitsiConference( = connection.initJitsiConference(
// XXX Lib-jitsi-meet does not accept uppercase letters. // XXX Lib-jitsi-meet does not accept uppercase letters.
room.toLowerCase(), room.toLowerCase(),
{ {
...config,
openSctp: true openSctp: true
// FIXME I tested H.264 from iPhone 6S during a morning // FIXME I tested H.264 from iPhone 6S during a morning