mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-05 11:34:53 -04:00
13 lines
452 B
Dart
13 lines
452 B
Dart
import 'package:flutter_bloc/flutter_bloc.dart';
|
|
import 'package:veilid_support/veilid_support.dart';
|
|
|
|
class ActiveChatCubit extends Cubit<TypedKey?> {
|
|
ActiveChatCubit(super.initialState, this.setHasActiveChat);
|
|
|
|
void setActiveChat(TypedKey? activeChatRemoteConversationRecordKey) {
|
|
setHasActiveChat(activeChatRemoteConversationRecordKey != null);
|
|
emit(activeChatRemoteConversationRecordKey);
|
|
}
|
|
|
|
void Function(bool) setHasActiveChat;
|
|
}
|