package com.remax.visualnovel.entity.imbean

import com.netease.nimlib.sdk.v2.conversation.model.V2NIMConversation
import com.netease.nimlib.sdk.v2.utils.V2NIMConversationIdUtil

/**
 * Created by HJW on 2020/10/9
 */
data class RecentContactWrapper(
    var recentContact: V2NIMConversation
) {
    val aiId: String
        get() {
            val targetId = V2NIMConversationIdUtil.conversationTargetId(recentContact.conversationId)

            return targetId.substring(0, targetId.indexOf("@"))
        }
}

