This commit is contained in:
cc committed 2026-07-03 14:43:13 +08:00
1 parent 45e653841d
commit 290efee495
12 files changed
+146 -30

No files matched your search

+4
View File
@@ -399,6 +399,7 @@ function ContactsPage() {
nickname: contact.nickname,
alias: contact.alias,
labels: contact.labels,
description: contact.description,
detailDescription: contact.detailDescription,
region: contact.region,
type: contact.type
@@ -660,6 +661,9 @@ function ContactsPage() {
selectedContact.labels && selectedContact.labels.length > 0
? { key: 'labels', label: '标签', value: selectedContact.labels.join('、') }
: null,
selectedContact.description
? { key: 'description', label: '描述', value: selectedContact.description }
: null,
selectedContact.detailDescription
? { key: 'signature', label: '个性签名', value: selectedContact.detailDescription }
: null,
@@ -128,6 +128,7 @@ export function useContactsLoader(): ContactsLoaderResult {
nickname: c.nickname,
alias: c.alias,
labels: c.labels,
description: c.description,
detailDescription: c.detailDescription,
region: c.region
})))
@@ -222,6 +223,7 @@ export function useContactsLoader(): ContactsLoaderResult {
nickname: c.nickname,
alias: c.alias,
labels: c.labels,
description: c.description,
detailDescription: c.detailDescription,
region: c.region
})))
+3
View File
@@ -1002,6 +1002,7 @@ export interface ContactsListCacheContact {
nickname?: string
alias?: string
labels?: string[]
description?: string
detailDescription?: string
region?: string
type: 'friend' | 'group' | 'official' | 'former_friend' | 'other'
@@ -1528,6 +1529,7 @@ export async function getContactsListCache(scopeKey: string): Promise<ContactsLi
labels: Array.isArray(item.labels)
? Array.from(new Set(item.labels.map((label) => String(label || '').trim()).filter(Boolean)))
: undefined,
description: typeof item.description === 'string' ? (item.description.trim() || undefined) : undefined,
detailDescription: typeof item.detailDescription === 'string' ? (item.detailDescription.trim() || undefined) : undefined,
region: typeof item.region === 'string' ? (item.region.trim() || undefined) : undefined,
type: (type === 'friend' || type === 'group' || type === 'official' || type === 'former_friend' || type === 'other')
@@ -1567,6 +1569,7 @@ export async function setContactsListCache(scopeKey: string, contacts: ContactsL
labels: Array.isArray(contact?.labels)
? Array.from(new Set(contact.labels.map((label) => String(label || '').trim()).filter(Boolean)))
: undefined,
description: contact?.description ? (String(contact.description).trim() || undefined) : undefined,
detailDescription: contact?.detailDescription ? (String(contact.detailDescription).trim() || undefined) : undefined,
region: contact?.region ? (String(contact.region).trim() || undefined) : undefined,
type
+1
View File
@@ -38,6 +38,7 @@ export interface ContactInfo {
nickname?: string
alias?: string
labels?: string[]
description?: string
detailDescription?: string
region?: string
avatarUrl?: string