Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions app/lib/methods/videoConfTimer.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
import BackgroundTimer from 'react-native-background-timer';

import { updateJitsiTimeout } from '../services/restApi';

let interval: number | null = null;
let interval: ReturnType<typeof setInterval> | null = null;

export const initVideoConfTimer = (rid: string): void => {
if (rid) {
updateJitsiTimeout(rid).catch((e: unknown) => console.log(e));
if (interval) {
BackgroundTimer.clearInterval(interval);
BackgroundTimer.stopBackgroundTimer();
clearInterval(interval);
interval = null;
}
interval = BackgroundTimer.setInterval(() => {
interval = setInterval(() => {
updateJitsiTimeout(rid).catch((e: unknown) => console.log(e));
}, 10000);
}
};

export const endVideoConfTimer = (): void => {
if (interval) {
BackgroundTimer.clearInterval(interval);
clearInterval(interval);
interval = null;
BackgroundTimer.stopBackgroundTimer();
}
};
8 changes: 1 addition & 7 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2318,8 +2318,6 @@ PODS:
- ReactCommon/turbomodule/core
- SocketRocket
- Yoga
- react-native-background-timer (2.4.1):
- React-Core
- react-native-cameraroll (7.10.2):
- boost
- DoubleConversion
Expand Down Expand Up @@ -3903,7 +3901,6 @@ DEPENDENCIES:
- React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
- React-mutationobservernativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver`)
- react-native-a11y-order (from `../node_modules/react-native-a11y-order`)
- react-native-background-timer (from `../node_modules/react-native-background-timer`)
- "react-native-cameraroll (from `../node_modules/@react-native-camera-roll/camera-roll`)"
- "react-native-cookies (from `../node_modules/@react-native-cookies/cookies`)"
- react-native-external-keyboard (from `../node_modules/react-native-external-keyboard`)
Expand Down Expand Up @@ -4152,8 +4149,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/mutationobserver"
react-native-a11y-order:
:path: "../node_modules/react-native-a11y-order"
react-native-background-timer:
:path: "../node_modules/react-native-background-timer"
react-native-cameraroll:
:path: "../node_modules/@react-native-camera-roll/camera-roll"
react-native-cookies:
Expand Down Expand Up @@ -4384,7 +4379,6 @@ SPEC CHECKSUMS:
React-microtasksnativemodule: a2ff1eb11061ca170faac36c8a77089ab1f2f053
React-mutationobservernativemodule: 7e78b1a0aa0b6219f785cf1db3a53f98498b08d2
react-native-a11y-order: 20b33ff538af60d8b8a7f7284115a7febc9034d4
react-native-background-timer: 4638ae3bee00320753647900b21260b10587b6f7
react-native-cameraroll: ae31ba7ee17d31c5ee05d7bb248742e3af482783
react-native-cookies: d648ab7025833b977c0b19e142503034f5f29411
react-native-external-keyboard: db51d3a78d68c1f87fef41c67353a7c0ddbe51dd
Expand Down Expand Up @@ -4426,7 +4420,7 @@ SPEC CHECKSUMS:
React-utils: 2bc263749b7ce4cbcea7e919d13762c5290ac196
React-webperformancenativemodule: 715775339b1cf5444cedfacae22e8d8976adffc1
ReactAppDependencyProvider: 5cc0b8b95a5be99ad92aee2d59bc59987df97753
ReactCodegen: 119593d1ec01c4f7bc204d9916cacf53be4b8ed2
ReactCodegen: e6335a5069153978e70168a1e948418971997379
ReactCommon: 1e53be0fda7e5fb3074762ba18c55e95548a6434
ReactNativeIncallManager: dccd3e7499caa3bb73d3acfedf4fb0360f1a87d5
RNBootSplash: 7fcc9a58ae343aeb1a1dd49f9030832fe432c544
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
"react-native": "0.83.10",
"react-native-a11y-order": "^0.4.0",
"react-native-animatable": "1.3.3",
"react-native-background-timer": "2.4.1",
"react-native-bootsplash": "^6.3.8",
"react-native-callkeep": "4.3.16",
"react-native-console-time-polyfill": "1.2.3",
Expand Down Expand Up @@ -186,7 +185,6 @@
"@types/jsrsasign": "^10.5.8",
"@types/lodash": "^4.14.188",
"@types/react": "^19.2.0",
"@types/react-native-background-timer": "^2.0.2",
"@types/semver": "7.3.13",
"@types/ua-parser-js": "^0.7.36",
"@types/url-parse": "^1.4.8",
Expand Down
20 changes: 0 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading