From c3f30a317e2e5cfb9f3f4008ca472f10ca413ccd Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 5 May 2022 09:22:23 +0200 Subject: [PATCH] fix: App crashes on account switch --- lib/pages/chat_list/chat_list_body.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/pages/chat_list/chat_list_body.dart b/lib/pages/chat_list/chat_list_body.dart index 83f02df6..acf286b9 100644 --- a/lib/pages/chat_list/chat_list_body.dart +++ b/lib/pages/chat_list/chat_list_body.dart @@ -25,7 +25,6 @@ class ChatListViewBody extends StatefulWidget { class _ChatListViewBodyState extends State { // the matrix sync stream late StreamSubscription _subscription; - late StreamSubscription _clientSubscription; // used to check the animation direction String? _lastUserId; @@ -40,8 +39,6 @@ class _ChatListViewBodyState extends State { .where((s) => s.hasRoomUpdate) .rateLimit(const Duration(seconds: 1)) .listen((d) => setState(() {})); - _clientSubscription = - widget.controller.clientStream.listen((d) => setState(() {})); super.initState(); } @@ -189,7 +186,6 @@ class _ChatListViewBodyState extends State { @override void dispose() { _subscription.cancel(); - _clientSubscription.cancel(); super.dispose(); }