|
|
@ -420,7 +420,6 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|
|
|
final foreground = state != AppLifecycleState.detached &&
|
|
|
|
final foreground = state != AppLifecycleState.detached &&
|
|
|
|
state != AppLifecycleState.paused;
|
|
|
|
state != AppLifecycleState.paused;
|
|
|
|
client.backgroundSync = foreground;
|
|
|
|
client.backgroundSync = foreground;
|
|
|
|
client.syncPresence = foreground ? null : PresenceType.unavailable;
|
|
|
|
|
|
|
|
client.requestHistoryOnLimitedTimeline = !foreground;
|
|
|
|
client.requestHistoryOnLimitedTimeline = !foreground;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|