chatTypeFromInt static method
Implementation
static EMMessageChatType chatTypeFromInt(int? type) {
if (type == 2) {
return EMMessageChatType.ChatRoom;
} else if (type == 1) {
return EMMessageChatType.GroupChat;
} else {
return EMMessageChatType.Chat;
}
}