refactor: Remove syncstatus verbose logs

This commit is contained in:
Christian Pauly 2023-02-15 15:27:23 +01:00
parent 9384ef0503
commit a48e42dfcf

View File

@ -352,8 +352,6 @@ class ChatListController extends State<ChatList>
} }
} }
StreamSubscription? _onSyncStatus;
@override @override
void initState() { void initState() {
_initReceiveSharingIntent(); _initReceiveSharingIntent();
@ -370,10 +368,6 @@ class ChatListController extends State<ChatList>
}); });
_checkTorBrowser(); _checkTorBrowser();
_onSyncStatus =
Matrix.of(context).client.onSyncStatus.stream.listen((status) {
Logs().v('Sync Status: ${status.status.name}');
});
super.initState(); super.initState();
} }
@ -383,7 +377,6 @@ 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();
} }