Skip to content
v1
文档/Browser JS SDK/会话

@beeworks/imsdk


@beeworks/imsdk / conversation / getConversationSettings

getConversationSettings()

getConversationSettings(conversation): Promise<IConversationSettings>

获取会话设置

从服务器获取指定会话的设置信息(如置顶、免打扰等)。

Parameters

conversation

Conversation

会话对象 Conversation

Returns

Promise<IConversationSettings>

Promise<IConversationSettings> - 会话设置

Example

typescript
const settings = await getConversationSettings(conversation);
console.log('Is pinned:', settings.pinned);