Uses the wrapped fetch from base/util.
This commit is contained in:
parent
2ded8363ad
commit
75ab890707
|
@ -3,6 +3,7 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import { translate } from '../../../../base/i18n';
|
import { translate } from '../../../../base/i18n';
|
||||||
|
import { doGetJSON } from '../../../../base/util';
|
||||||
|
|
||||||
import ConferenceID from './ConferenceID';
|
import ConferenceID from './ConferenceID';
|
||||||
import NumbersList from './NumbersList';
|
import NumbersList from './NumbersList';
|
||||||
|
@ -176,11 +177,7 @@ class DialInSummary extends Component<Props, State> {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
const conferenceIDURL
|
return doGetJSON(`${dialInConfCodeUrl}?conference=${room}@${mucURL}`)
|
||||||
= `${dialInConfCodeUrl}?conference=${room}@${mucURL}`;
|
|
||||||
|
|
||||||
return fetch(conferenceIDURL)
|
|
||||||
.then(response => response.json())
|
|
||||||
.catch(() => Promise.reject(this.props.t('info.genericError')));
|
.catch(() => Promise.reject(this.props.t('info.genericError')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,11 +203,8 @@ class DialInSummary extends Component<Props, State> {
|
||||||
if (room && mucURL) {
|
if (room && mucURL) {
|
||||||
URLSuffix = `?conference=${room}@${mucURL}`;
|
URLSuffix = `?conference=${room}@${mucURL}`;
|
||||||
}
|
}
|
||||||
const conferenceIDURL
|
|
||||||
= `${dialInNumbersUrl}${URLSuffix}`;
|
|
||||||
|
|
||||||
return fetch(conferenceIDURL)
|
return doGetJSON(`${dialInNumbersUrl}${URLSuffix}`)
|
||||||
.then(response => response.json())
|
|
||||||
.catch(() => Promise.reject(this.props.t('info.genericError')));
|
.catch(() => Promise.reject(this.props.t('info.genericError')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue