Reaction 变更事件载荷。

触发时机:会话中有成员对消息添加或移除 Reaction。 接收方:会话内的所有成员。 注意:当前仅支持单聊和群聊,不支持聊天室。

interface ReactionChangedEventPayload {
    messageId: string;
    conversationId: string;
    conversationType: "singleChat" | "groupChat";
    from: string;
    to: string;
    reactions: readonly MessageReaction[];
    timestamp: number;
}

Properties

messageId: string

消息 ID。

conversationId: string

会话 ID。

conversationType: "singleChat" | "groupChat"

会话类型(仅 singleChat 或 groupChat)。

from: string

消息发送者的用户 ID。

to: string

消息接收方 ID。单聊场景下为对端用户 ID,群聊场景下为群组 ID。

reactions: readonly MessageReaction[]

当前消息上的完整 Reaction 列表。

timestamp: number

Reaction 更新时间戳。