Merge branch 'krille/fix-ios-share' into 'main'

chore: Follow up fix ios share files

See merge request famedly/fluffychat!859
This commit is contained in:
Krille Fear 2022-05-05 07:41:35 +00:00
commit d27810703b
3 changed files with 13 additions and 14 deletions

View file

@ -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();
}
@ -194,7 +191,6 @@ class _ChatListViewBodyState extends State<ChatListViewBody> {
@override
void dispose() {
_subscription.cancel();
_clientSubscription.cancel();
super.dispose();
}