会话置顶
SDK 提供设置会话是否置顶接口,置顶的状态将会被同步到服务端,切换设备后置顶状态也会一并同步下来。
设置会话置顶
方法
C #
int changeConversationTopStatus(
RCIMConversationType type,
string targetId,
string channelId,
bool top
)
参数说明
参数 | 类型 | 说明 |
---|---|---|
type | RCIMConversationType | 会话类型 |
targetId | string | 会话 ID |
channelId | string | 频道 ID,仅支持超级群使用,其他会话类型传 null 即可 |
top | bool | 是否置顶,true置顶,false,不置顶 |
代码示例
C #
int code = engine.changeConversationTopStatus(
type,
targetId,
channelId,
top
);