Pin Conversation
Set Conversation to Top
Call setConversationToTop to set a conversation to the top.
const conversationType = RongIMLib.ConversationType.PRIVATE;
const targetId = 'Receiver's userId';
const isTop = true
RongIMLib.setConversationToTop({
    conversationType,
    targetId,
}, isTop).then(({code}) => {
    // Successfully set conversation to top
    if( !code ){
    }
})
| Parameter | Type | Required | Description | 
|---|---|---|---|
| targetId | String | Yes | Receiver's userId | 
| conversationType | Number | Yes | Conversation type, refer to ConversationType. | 
| isTop | Boolean | No | Whether to set to top |