会话设置
kotlin
suspend fun getConversationSetting(
participantId: String,
participantType: String,
): BimConversationSetting
suspend fun updateConversationSetting(
participantId: String,
participantType: String,
setting: BimConversationSetting,
)
suspend fun deleteConversation(
sequence: String,
participantId: String,
participantType: String,
)kotlin
val service = BimImManager.getInstance().conversationService
val setting = service.getConversationSetting("d10001", "DISCUSSION")
service.updateConversationSetting(
"d10001",
"DISCUSSION",
setting.copy(pinned = true, watched = true),
)participantType 使用服务端约定的 USER 或 DISCUSSION。deleteConversation 的 sequence 使用服务端会话序列值。
