Add files via upload

This commit is contained in:
Cola-Echo
2026-01-02 02:48:58 +08:00
committed by GitHub
parent 8595a7c48d
commit 4a097a613b
2 changed files with 7 additions and 0 deletions

2
ui.js
View File

@@ -180,7 +180,9 @@ export function generateChatList() {
// 生成单聊列表项
function generateContactChatItem(contact) {
if (!contact) return '';
const lastMsg = contact.lastMsg;
if (!lastMsg) return '';
let preview = '';
if (lastMsg.type === 'voice' || lastMsg.isVoice) {
preview = '[语音]';