Function toCachedConversation

Converts a Conversation from the XMTP network to its cached format

  • Parameters

    • conversation: Conversation<any>
    • walletAddress: string

    Returns {
        context: undefined | InvitationContext;
        createdAt: Date;
        isReady: false;
        peerAddress: string;
        topic: string;
        updatedAt: Date;
        walletAddress: string;
    }

    The conversation in cached format

    • context: undefined | InvitationContext
    • createdAt: Date
    • isReady: false
    • peerAddress: string
    • topic: string
    • updatedAt: Date
    • walletAddress: string