mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 06:25:15 +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
|
||||
void initState() {
|
||||
_initReceiveSharingIntent();
|
||||
|
@ -361,6 +363,10 @@ class ChatListController extends State<ChatList>
|
|||
|
||||
_checkTorBrowser();
|
||||
Matrix.of(context).backgroundPush?.setupPush();
|
||||
_onSyncStatus =
|
||||
Matrix.of(context).client.onSyncStatus.stream.listen((status) {
|
||||
Logs().v('Sync Status: ${status.status.name}');
|
||||
});
|
||||
|
||||
super.initState();
|
||||
}
|
||||
|
@ -370,6 +376,7 @@ class ChatListController extends State<ChatList>
|
|||
_intentDataStreamSubscription?.cancel();
|
||||
_intentFileStreamSubscription?.cancel();
|
||||
_intentUriStreamSubscription?.cancel();
|
||||
_onSyncStatus?.cancel();
|
||||
scrollController.removeListener(_onScroll);
|
||||
super.dispose();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue