diff --git a/pkg/arvo/app/contact-store.hoon b/pkg/arvo/app/contact-store.hoon index 3ff7c3039..8f26d409e 100644 --- a/pkg/arvo/app/contact-store.hoon +++ b/pkg/arvo/app/contact-store.hoon @@ -117,7 +117,6 @@ !=(contact(last-updated *@da) u.old(last-updated *@da)) == [~ state] - =. last-updated.contact now.bowl :- (send-diff [%add ship contact] =(ship our.bowl)) state(rolodex (~(put by rolodex) ship contact)) :: @@ -141,7 +140,7 @@ =/ contact (edit-contact old edit-field) ?: =(old contact) [~ state] - =. last-updated.contact now.bowl + =. last-updated.contact timestamp :- (send-diff [%edit ship edit-field] =(ship our.bowl)) state(rolodex (~(put by rolodex) ship contact)) :: diff --git a/pkg/interface/src/logic/api/contacts.ts b/pkg/interface/src/logic/api/contacts.ts index 5bf0a659f..ca1f0a338 100644 --- a/pkg/interface/src/logic/api/contacts.ts +++ b/pkg/interface/src/logic/api/contacts.ts @@ -6,6 +6,7 @@ import { GroupPolicy, Resource } from '~/types/group-update'; export default class ContactsApi extends BaseApi { add(ship: Patp, contact: any) { + contact['last-updated'] = Date.now(); return this.storeAction({ add: { ship, contact } }); } @@ -25,11 +26,11 @@ export default class ContactsApi extends BaseApi { {add-group: {ship, name}} {remove-group: {ship, name}} */ - console.log(ship, editField); return this.storeAction({ edit: { ship, 'edit-field': editField, + timestamp: Date.now() }, }); }