more refactor

This commit is contained in:
Christien Rioux 2024-02-13 22:03:26 -05:00
parent 45ab494969
commit 9219e1307e
19 changed files with 181 additions and 467 deletions

View file

@ -2,9 +2,12 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:veilid_support/veilid_support.dart';
class ActiveChatCubit extends Cubit<TypedKey?> {
ActiveChatCubit(super.initialState);
ActiveChatCubit(super.initialState, this.setHasActiveChat);
void setActiveChat(TypedKey? activeChatRemoteConversationRecordKey) {
setHasActiveChat(activeChatRemoteConversationRecordKey != null);
emit(activeChatRemoteConversationRecordKey);
}
void Function(bool) setHasActiveChat;
}