mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 08:25:12 +00:00
chore: Follow up background sync
This commit is contained in:
parent
f11e9ec6d2
commit
6a75d07dea
1 changed files with 2 additions and 2 deletions
|
@ -414,8 +414,8 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
Logs().v('AppLifecycleState = $state');
|
||||
final foreground =
|
||||
state != AppLifecycleState.resumed && state != AppLifecycleState.paused;
|
||||
final foreground = state != AppLifecycleState.inactive &&
|
||||
state != AppLifecycleState.paused;
|
||||
client.syncPresence =
|
||||
state == AppLifecycleState.resumed ? null : PresenceType.unavailable;
|
||||
if (PlatformInfos.isMobile) {
|
||||
|
|
Loading…
Reference in a new issue