mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-02 05:03:04 -04:00
more refactor
This commit is contained in:
parent
45ab494969
commit
9219e1307e
19 changed files with 181 additions and 467 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue