feat(share_extension): integrate share_handler package and implement share functionality with updated permissions and entitlements
This commit is contained in:
@@ -21,6 +21,9 @@ final chatMessagesProvider =
|
||||
// Loading state for conversation (used to show chat skeletons during fetch)
|
||||
final isLoadingConversationProvider = StateProvider<bool>((ref) => false);
|
||||
|
||||
// Prefilled input text (e.g., when sharing text from other apps)
|
||||
final prefilledInputTextProvider = StateProvider<String?>((ref) => null);
|
||||
|
||||
class ChatMessagesNotifier extends StateNotifier<List<ChatMessage>> {
|
||||
final Ref _ref;
|
||||
StreamSubscription? _messageStream;
|
||||
@@ -453,6 +456,16 @@ Future<void> sendMessage(
|
||||
await _sendMessageInternal(ref, message, attachments, toolIds);
|
||||
}
|
||||
|
||||
// Service-friendly wrapper (accepts generic Ref)
|
||||
Future<void> sendMessageFromService(
|
||||
Ref ref,
|
||||
String message,
|
||||
List<String>? attachments, [
|
||||
List<String>? toolIds,
|
||||
]) async {
|
||||
await _sendMessageInternal(ref, message, attachments, toolIds);
|
||||
}
|
||||
|
||||
// Internal send message implementation
|
||||
Future<void> _sendMessageInternal(
|
||||
dynamic ref,
|
||||
|
||||
Reference in New Issue
Block a user