@sudoplatform/sudo-secure-communications
    Preparing search index...

    Interface Message

    The Sudo Platform SDK representation of a Message that have been either sent or received.

    Message

    interface Message {
        content: MessageContent;
        isOwn: boolean;
        isVerified?: boolean;
        messageId: string;
        reactions: MessageReaction[];
        receipts: MessageReceipt[];
        senderHandle: Handle;
        state: MessageState;
        timestamp: number;
    }
    Index

    Properties

    The message content object. See the MessageContent type for all possible content types.

    isOwn: boolean

    True if the message was sent by the current handle, false if not.

    isVerified?: boolean

    If available, true if the message sender's device was verified, false if not. Verification information is not available for all messages, for example system messages. In this case the field will be undefined.

    messageId: string

    Unique identifier of the message.

    reactions: MessageReaction[]

    A list of all message reactions associated with the message.

    receipts: MessageReceipt[]

    A list of all read-receipts associated with the message.

    senderHandle: Handle

    The message sender's handle.

    The current state of the message.

    timestamp: number

    The time the message was sent or received.