mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
fix: Do not setup push on every app resume
This commit is contained in:
parent
54303ef635
commit
7da70ebeba
@ -430,8 +430,6 @@ class MatrixState extends State<Matrix> 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<Matrix> with WidgetsBindingObserver {
|
||||
client.backgroundSync = foreground;
|
||||
client.syncPresence = foreground ? null : PresenceType.unavailable;
|
||||
client.requestHistoryOnLimitedTimeline = !foreground;
|
||||
if (_firstStartup) {
|
||||
_firstStartup = false;
|
||||
backgroundPush?.setupPush();
|
||||
}
|
||||
}
|
||||
|
||||
void initSettings() {
|
||||
|
Loading…
Reference in New Issue
Block a user