fix: App crashes on account switch
This commit is contained in:
parent
eccd427a94
commit
4f126b7708
1 changed files with 0 additions and 4 deletions
|
|
@ -25,7 +25,6 @@ class ChatListViewBody extends StatefulWidget {
|
|||
class _ChatListViewBodyState extends State<ChatListViewBody> {
|
||||
// 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<ChatListViewBody> {
|
|||
.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<ChatListViewBody> {
|
|||
@override
|
||||
void dispose() {
|
||||
_subscription.cancel();
|
||||
_clientSubscription.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue