pinConversation method
Implementation
void pinConversation(int index) {
engineProvider.engine?.changeConversationTopStatus(
_conversations[index].conversationType ??
RCIMIWConversationType.invalid,
_conversations[index].targetId ?? '',
_conversations[index].channelId,
!(_conversations[index].top ?? false),
callback: IRCIMIWChangeConversationTopStatusCallback(
onConversationTopStatusChanged: (int? code) {
initConversations();
},
));
}