From 6c53ab370b22576b8bd0bf36bcc4e4b45c8094a0 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Thu, 29 Dec 2022 10:35:02 +0100 Subject: [PATCH] fix: Do not setup push on every app resume --- lib/widgets/matrix.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index ef9d92ad..46ec31e7 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -430,8 +430,6 @@ class MatrixState extends State with WidgetsBindingObserver { voipPlugin = webrtcIsSupported ? VoipPlugin(client) : null; } - bool _firstStartup = true; - @override void didChangeAppLifecycleState(AppLifecycleState state) { Logs().v('AppLifecycleState = $state'); @@ -440,10 +438,6 @@ class MatrixState extends State with WidgetsBindingObserver { client.backgroundSync = foreground; client.syncPresence = foreground ? null : PresenceType.unavailable; client.requestHistoryOnLimitedTimeline = !foreground; - if (_firstStartup) { - _firstStartup = false; - backgroundPush?.setupPush(); - } } void initSettings() {