mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
contact-store: upon %edit of a nonexistent contact, make an empty contact and set that field
This commit is contained in:
parent
081c4579b2
commit
6ee6a99acf
@ -143,7 +143,7 @@
|
||||
|= [=ship =edit-field:store timestamp=@da]
|
||||
|^
|
||||
^- (quip card _state)
|
||||
=/ old (~(got by rolodex) ship)
|
||||
=/ old (fall (~(get by rolodex) ship) *contact:store)
|
||||
?: (lte timestamp last-updated.old)
|
||||
[~ state]
|
||||
=/ contact (edit-contact old edit-field)
|
||||
|
Loading…
Reference in New Issue
Block a user