getConversatinoID method

String getConversatinoID()

Implementation

String getConversatinoID() {
  switch (conversationType) {
    case YIMEnum_ConversationType.P2P:
      return (from == _YIMSDK.currentUser ? to : from);
    case YIMEnum_ConversationType.Team:
      return to;
    case YIMEnum_ConversationType.ChatRoom:
      return to;
    default:
      return "";
  }
}