getConversatinoID method

String getConversatinoID()

Implementation

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