mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:15:09 +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
|
@override
|
||||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||||
Logs().v('AppLifecycleState = $state');
|
Logs().v('AppLifecycleState = $state');
|
||||||
final foreground =
|
final foreground = state != AppLifecycleState.inactive &&
|
||||||
state != AppLifecycleState.resumed && state != AppLifecycleState.paused;
|
state != AppLifecycleState.paused;
|
||||||
client.syncPresence =
|
client.syncPresence =
|
||||||
state == AppLifecycleState.resumed ? null : PresenceType.unavailable;
|
state == AppLifecycleState.resumed ? null : PresenceType.unavailable;
|
||||||
if (PlatformInfos.isMobile) {
|
if (PlatformInfos.isMobile) {
|
||||||
|
|
Loading…
Reference in a new issue