Function toCachedMessage

Converts a DecodedMessage from the XMTP network to its cached format

  • Parameters

    • message: DecodedMessage<any>

      The message to convert

    • walletAddress: string

      The wallet address associated with the message

    Returns {
        content: any;
        contentBytes: undefined | Uint8Array;
        contentFallback: undefined | string;
        contentType: string;
        conversationTopic: string;
        hasLoadError: false;
        hasSendError: false;
        id: string;
        isSending: false;
        senderAddress: string;
        sentAt: Date;
        status: "unprocessed";
        uuid: string;
        walletAddress: string;
    }

    The message in cached format

    • content: any
    • contentBytes: undefined | Uint8Array
    • contentFallback: undefined | string
    • contentType: string
    • conversationTopic: string
    • hasLoadError: false
    • hasSendError: false
    • id: string
    • isSending: false
    • senderAddress: string
    • sentAt: Date
    • status: "unprocessed"
    • uuid: string
    • walletAddress: string