fix(chat): 回复后再移出待处理
This commit is contained in:
@@ -564,7 +564,7 @@ function stageCount(key: string) {
|
||||
}
|
||||
|
||||
function conversationStageLabel(item: ChatConversation) {
|
||||
if (item.unread_count > 0) return '待处理'
|
||||
if (item.needs_reply) return '待处理'
|
||||
if (!item.latest_order_id) return '无订单'
|
||||
if (item.latest_order_status === 'pending_handoff') return '待交接'
|
||||
if (['renting', 'overdue'].includes(item.latest_order_status || '')) return '使用中'
|
||||
@@ -584,7 +584,7 @@ function conversationStageLabel(item: ChatConversation) {
|
||||
}
|
||||
|
||||
function conversationStageClass(item: ChatConversation) {
|
||||
if (item.unread_count > 0) return 'pending'
|
||||
if (item.needs_reply) return 'pending'
|
||||
if (!item.latest_order_id) return 'unjoined'
|
||||
if (item.latest_order_status === 'pending_handoff') return 'handoff'
|
||||
if (['renting', 'overdue'].includes(item.latest_order_status || '')) return 'renting'
|
||||
|
||||
@@ -39,6 +39,7 @@ export interface ChatConversation {
|
||||
last_sender_id?: number
|
||||
last_sender_role?: string
|
||||
unread_count: number
|
||||
needs_reply: boolean
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user