• Experimental

    Enhance XMTP conversations with profiles of the conversations' peers, if conversation is between two Lens profiles.

    You MUST be authenticated via useLogin to use this hook.

    Parameters

    • useConversationsResult: {
          conversations: CachedConversation<ContentTypeMetadata>[];
          error: null | Error;
          isLoaded: boolean;
          isLoading: boolean;
      }
      • conversations: CachedConversation<ContentTypeMetadata>[]
      • error: null | Error
      • isLoaded: boolean
      • isLoading: boolean

    Returns UseEnhanceConversationsResult

    Example

    import { useConversations } from '@xmtp/react-sdk';

    const { data: conversations, error, loading } = useEnhanceConversations(useConversations());