Compare commits

...

2 Commits

Author SHA1 Message Date
Saúl Ibarra Corretgé c8a24d55f8 test: always use background timers on iOS 2022-02-09 16:53:18 +01:00
Saúl Ibarra Corretgé ef9913c1c7 fix(rn) fix broken mobile build
Importing the entire feature triggers web UI imports.
2021-12-11 15:22:03 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import {
showWarningNotification
} from '../../notifications';
import { isForceMuted } from '../../participants-pane/functions';
import { isScreenMediaShared } from '../../screen-share';
import { isScreenMediaShared } from '../../screen-share/functions';
import { SET_AUDIO_ONLY, setAudioOnly } from '../audio-only';
import { isRoomValid, SET_ROOM } from '../conference';
import { getLocalParticipant } from '../participants';

View File

@ -441,12 +441,12 @@ function _visitNode(node, callback) {
// Required by:
// - lib-jitsi-meet
// - Strophe
if (Platform.OS === 'android') {
//if (Platform.OS === 'android') {
global.clearTimeout = BackgroundTimer.clearTimeout.bind(BackgroundTimer);
global.clearInterval = BackgroundTimer.clearInterval.bind(BackgroundTimer);
global.setInterval = BackgroundTimer.setInterval.bind(BackgroundTimer);
global.setTimeout = (fn, ms = 0) => BackgroundTimer.setTimeout(fn, ms);
}
//}
// localStorage
if (typeof global.localStorage === 'undefined') {