chatTypeToInt static method

int chatTypeToInt(
  1. EMMessageChatType type
)

Implementation

static int chatTypeToInt(EMMessageChatType type) {
  if (type == EMMessageChatType.ChatRoom) {
    return 2;
  } else if (type == EMMessageChatType.GroupChat) {
    return 1;
  } else {
    return 0;
  }
}