mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 10:46:21 +00:00
check uniqueness
This commit is contained in:
parent
bb4641fc93
commit
4181541ae2
@ -8,8 +8,8 @@
|
|||||||
(not (realm/exists? :contacts :whisper-identity identity)))
|
(not (realm/exists? :contacts :whisper-identity identity)))
|
||||||
|
|
||||||
(s/def ::unique-identity unique-identity?)
|
(s/def ::unique-identity unique-identity?)
|
||||||
(s/def ::name (s/and ::not-empty-string ::unique-identity))
|
(s/def ::name ::not-empty-string)
|
||||||
(s/def ::whisper-identity ::not-empty-string)
|
(s/def ::whisper-identity (s/and ::not-empty-string ::unique-identity))
|
||||||
|
|
||||||
(s/def ::contact (s/keys :req-un [::name ::whisper-identity]
|
(s/def ::contact (s/keys :req-un [::name ::whisper-identity]
|
||||||
:opt-un [::phone ::photo-path ::address]))
|
:opt-un [::phone ::photo-path ::address]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user