From 9248417773336e439fcda7f1129c4af4f79a647a Mon Sep 17 00:00:00 2001 From: Maarten Everts Date: Fri, 4 Sep 2020 16:09:43 +0200 Subject: [PATCH] Make UUID in JsonAddress optional --- signald/client-protocol/v1/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signald/client-protocol/v1/types.go b/signald/client-protocol/v1/types.go index 18929c0..70596d8 100644 --- a/signald/client-protocol/v1/types.go +++ b/signald/client-protocol/v1/types.go @@ -2,7 +2,7 @@ package v1 // JsonAddress is a signal user's contact information. a phone number, UUID or both type JsonAddress struct { - UUID string `json:"uuid"` + UUID string `json:"uuid,omitempty"` Number string `json:"number"` } @@ -26,7 +26,7 @@ type JsonReadMessage struct { type JsonSendMessageResult struct { Address JsonAddress `json:"address"` - Success Success `json:"success"` + Success Success `json:"success"` NetworkFailure bool `json:"networkFailure"` UnregisteredFailure bool `json:"unregisteredFailure"` IdentityFailure string `json:"identityFailure"`