mirror of
https://github.com/status-im/status-react.git
synced 2025-01-14 04:55:13 +00:00
nilable :message/to spec
Former-commit-id: 50e37bf327897b8cb68bd5c01ae98ac98b4933ba
This commit is contained in:
parent
d1dfce60d5
commit
0a3b8e137e
src/status_im/protocol
@ -3,7 +3,7 @@
|
||||
|
||||
(s/def :message/ttl (s/and int? pos?))
|
||||
(s/def :message/from string?)
|
||||
(s/def :message/to string?)
|
||||
(s/def :message/to (s/nilable string?))
|
||||
(s/def :message/message-id string?)
|
||||
(s/def :message/requires-ack? boolean?)
|
||||
(s/def :keypair/private string?)
|
||||
|
@ -68,7 +68,7 @@
|
||||
update to set/union #{[web3 message-id to]})))))))
|
||||
|
||||
(s/def :delivery/pending-message
|
||||
(s/keys :req-un [:message/to :message/from :shh/payload
|
||||
(s/keys :req-un [:message/from :message/to :shh/payload
|
||||
:message/requires-ack? :payload/ack? ::id :message/topics
|
||||
::attempts ::was-sent?]))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user