mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-02-02 11:24:50 -05:00
fix follow
This commit is contained in:
parent
72ffae6a92
commit
ad9a77d68f
@ -46,7 +46,7 @@ class ActiveConversationsBlocMapCubit extends BlocMapCubit<TypedKey,
|
||||
_contactListCubit = contactListCubit;
|
||||
|
||||
// Add an active conversation to be tracked for changes
|
||||
Future<void> addConversation({required proto.Contact contact}) async =>
|
||||
Future<void> _addConversation({required proto.Contact contact}) async =>
|
||||
add(() => MapEntry(
|
||||
contact.remoteConversationRecordKey.toVeilid(),
|
||||
TransformerCubit(
|
||||
@ -103,7 +103,7 @@ class ActiveConversationsBlocMapCubit extends BlocMapCubit<TypedKey,
|
||||
return;
|
||||
}
|
||||
final contact = contactList[contactIndex];
|
||||
await addConversation(contact: contact);
|
||||
await _addConversation(contact: contact);
|
||||
}
|
||||
|
||||
////
|
||||
|
@ -18,7 +18,8 @@ abstract mixin class StateFollower<S extends Object, K, V> {
|
||||
required Stream<S> stream,
|
||||
}) {
|
||||
//
|
||||
_lastInputStateMap = getStateMap(initialInputState);
|
||||
_lastInputStateMap = IMap();
|
||||
_updateFollow(initialInputState);
|
||||
_subscription = stream.listen(_updateFollow);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user