From d55adaf3a486246fa7f266cf0d864cad853db179 Mon Sep 17 00:00:00 2001 From: Mikhail Rogachev Date: Mon, 15 May 2023 11:29:33 +0400 Subject: [PATCH] fix: marshal dismissed contact request state properly (#3482) --- protocol/contact.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocol/contact.go b/protocol/contact.go index bb50e1c50..8271adf53 100644 --- a/protocol/contact.go +++ b/protocol/contact.go @@ -426,6 +426,8 @@ func (c *Contact) MarshalJSON() ([]byte, error) { if c.mutual() { item.ContactRequestState = ContactRequestStateMutual + } else if c.dismissed() { + item.ContactRequestState = ContactRequestStateDismissed } else if c.added() { item.ContactRequestState = ContactRequestStateSent } else if c.hasAddedUs() {