mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 07:35:13 +00:00
chore: Add sync status logs
This commit is contained in:
parent
2c83fb7a3c
commit
00f7e229b8
1 changed files with 7 additions and 0 deletions
|
@ -347,6 +347,8 @@ class ChatListController extends State<ChatList>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StreamSubscription? _onSyncStatus;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
_initReceiveSharingIntent();
|
_initReceiveSharingIntent();
|
||||||
|
@ -361,6 +363,10 @@ class ChatListController extends State<ChatList>
|
||||||
|
|
||||||
_checkTorBrowser();
|
_checkTorBrowser();
|
||||||
Matrix.of(context).backgroundPush?.setupPush();
|
Matrix.of(context).backgroundPush?.setupPush();
|
||||||
|
_onSyncStatus =
|
||||||
|
Matrix.of(context).client.onSyncStatus.stream.listen((status) {
|
||||||
|
Logs().v('Sync Status: ${status.status.name}');
|
||||||
|
});
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
@ -370,6 +376,7 @@ class ChatListController extends State<ChatList>
|
||||||
_intentDataStreamSubscription?.cancel();
|
_intentDataStreamSubscription?.cancel();
|
||||||
_intentFileStreamSubscription?.cancel();
|
_intentFileStreamSubscription?.cancel();
|
||||||
_intentUriStreamSubscription?.cancel();
|
_intentUriStreamSubscription?.cancel();
|
||||||
|
_onSyncStatus?.cancel();
|
||||||
scrollController.removeListener(_onScroll);
|
scrollController.removeListener(_onScroll);
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue