mirror of
				https://gitlab.com/veilid/veilidchat.git
				synced 2025-10-30 21:58:52 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			434 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			434 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:flutter_bloc/flutter_bloc.dart';
 | |
| import 'package:veilid_support/veilid_support.dart';
 | |
| 
 | |
| // XXX: if we ever want to have more than one chat 'open', we should put the
 | |
| // operations and state for that here.
 | |
| 
 | |
| class ActiveChatCubit extends Cubit<TypedKey?> {
 | |
|   ActiveChatCubit(super.initialState);
 | |
| 
 | |
|   void setActiveChat(TypedKey? activeChatLocalConversationRecordKey) {
 | |
|     emit(activeChatLocalConversationRecordKey);
 | |
|   }
 | |
| }
 | 
