chore: Better applifecycle logs

pull/750/head
krille-chan 2 years ago
parent cfc161b252
commit a5a1c9b580
No known key found for this signature in database

@ -34,9 +34,9 @@ class VoipPlugin with WidgetsBindingObserver implements WebRTCDelegate {
@override
void didChangeAppLifecycleState(AppLifecycleState? state) {
Logs().v('AppLifecycleState = $state');
background = (state == AppLifecycleState.detached ||
state == AppLifecycleState.paused);
Logs().w('Set background mode in VOIP plugin', background);
}
void addCallingOverlay(String callId, CallSession call) {

@ -424,6 +424,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
if (PlatformInfos.isMobile) {
client.backgroundSync = foreground;
client.requestHistoryOnLimitedTimeline = !foreground;
Logs().v('Set background sync to', foreground);
}
}

Loading…
Cancel
Save