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