From ad9a77d68f012ac479579a8f5f26d62a743abd9c Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Wed, 28 Feb 2024 11:58:46 -0500 Subject: [PATCH] fix follow --- lib/chat_list/cubits/active_conversations_bloc_map_cubit.dart | 4 ++-- packages/bloc_tools/lib/src/state_follower.dart | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/chat_list/cubits/active_conversations_bloc_map_cubit.dart b/lib/chat_list/cubits/active_conversations_bloc_map_cubit.dart index 7f67f10..8212331 100644 --- a/lib/chat_list/cubits/active_conversations_bloc_map_cubit.dart +++ b/lib/chat_list/cubits/active_conversations_bloc_map_cubit.dart @@ -46,7 +46,7 @@ class ActiveConversationsBlocMapCubit extends BlocMapCubit addConversation({required proto.Contact contact}) async => + Future _addConversation({required proto.Contact contact}) async => add(() => MapEntry( contact.remoteConversationRecordKey.toVeilid(), TransformerCubit( @@ -103,7 +103,7 @@ class ActiveConversationsBlocMapCubit extends BlocMapCubit { required Stream stream, }) { // - _lastInputStateMap = getStateMap(initialInputState); + _lastInputStateMap = IMap(); + _updateFollow(initialInputState); _subscription = stream.listen(_updateFollow); }