getConversationInfo method
Implementation
YIMInfo? getConversationInfo() {
switch (conversationType) {
case YIMEnum_ConversationType.P2P:
return (getIsMine() ? toInfo : fromInfo);
case YIMEnum_ConversationType.Team:
return toInfo;
case YIMEnum_ConversationType.ChatRoom:
return toInfo;
default:
return null;
}
}