feat(wip): remove contact

This commit is contained in:
CrescentLeaf
2025-09-20 21:17:43 +08:00
parent 8f7e61dfd2
commit 2ec4f634ae

View File

@@ -124,6 +124,10 @@ export default class User {
ls.push(chatId)
this.setAttr("contacts_list", JSON.stringify(ls))
}
removeContacts(contacts: string[]) {
const ls = this.getContactsList().filter((v) => !contacts.includes(v))
this.setAttr("contacts_list", JSON.stringify(ls))
}
getContactsList() {
try {
return JSON.parse(this.bean.contacts_list) as string[]