chore: Follow up status feature
This commit is contained in:
parent
376d59889b
commit
fa543e93b8
3 changed files with 21 additions and 8 deletions
|
|
@ -419,8 +419,11 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
Logs().v('AppLifecycleState = $state');
|
||||
final foreground = state != AppLifecycleState.detached &&
|
||||
state != AppLifecycleState.paused;
|
||||
client.backgroundSync = foreground;
|
||||
client.requestHistoryOnLimitedTimeline = !foreground;
|
||||
client.syncPresence = foreground ? null : PresenceType.unavailable;
|
||||
if (PlatformInfos.isMobile) {
|
||||
client.backgroundSync = foreground;
|
||||
client.requestHistoryOnLimitedTimeline = !foreground;
|
||||
}
|
||||
}
|
||||
|
||||
void initSettings() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue