package com.tencent.qcloud.tuikit.timcommon.util;

import static com.tencent.qcloud.tuicore.TUIConstants.TUIConversation.CONVERSATION_C2C_PREFIX;
import static com.tencent.qcloud.tuicore.TUIConstants.TUIConversation.CONVERSATION_GROUP_PREFIX;

public class TIMCommonUtil {

    public static String getConversationIdByID(String chatID, boolean isGroup) {
        String conversationIdPrefix = isGroup ? CONVERSATION_GROUP_PREFIX : CONVERSATION_C2C_PREFIX;
        return conversationIdPrefix + chatID;
    }


    public static boolean isChatbot(String chatID) {
        return chatID.startsWith("@RBT#");
    }
}
