RongIMLib View Markdown
    Preparing search index...

    Interface IInsertMessage

    插入消息结构

    interface IInsertMessage {
        conversationType: number;
        targetId: string;
        channelId?: string;
        messageDirection: number;
        messageType: string;
        content: any;
        messageUId: string;
        senderUserId: string;
        sentStatus?: number;
        sentTime?: number;
        disableNotification?: boolean;
        canIncludeExpansion?: boolean;
        expansion?: { [key: string]: any };
        receivedStatus?: number;
        receivedStatusInfo?: IReceivedStatusInfo;
        directedUserIds?: string[];
        isUnread?: boolean;
        searchContent?: string;
        source?: string;
        isMentioned?: boolean;
        disableUpdateLastMessage?: boolean;
        quoteInfo?: IQuoteInfo;
    }
    Index
    conversationType: number

    会话类型

    targetId: string

    会话 ID

    channelId?: string

    频道 ID

    messageDirection: number

    消息方向

    messageType: string

    消息类型

    content: any

    消息内容

    messageUId: string

    消息 ID

    senderUserId: string

    发送者 ID

    sentStatus?: number

    发送状态

    sentTime?: number

    发送时间

    disableNotification?: boolean

    是否存储

    canIncludeExpansion?: boolean

    是否计数

    expansion?: { [key: string]: any }

    消息扩展

    receivedStatus?: number

    接收状态

    receivedStatusInfo?: IReceivedStatusInfo

    接收状态详情

    directedUserIds?: string[]

    定向用户列表

    isUnread?: boolean

    插入消息是否计入未读数:true 计数 false 不计数,默认不计数

    searchContent?: string

    消息搜索关键字

    source?: string

    来源

    isMentioned?: boolean

    是否 @ 消息

    disableUpdateLastMessage?: boolean

    禁止更新到会话最新一条消息,默认 false: 更新,true: 不更新

    quoteInfo?: IQuoteInfo

    消息引用信息 *

    5.38.0