mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
14 lines
452 B
Dart
14 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;
|
|
}
|