mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-02 16:14:21 +01:00
chore: Add sync status logs
This commit is contained in:
parent
36237d04aa
commit
b6d5e49b4e
@ -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 New Issue
Block a user