fix: marshal dismissed contact request state properly (#3482)
This commit is contained in:
parent
39f486a47a
commit
d55adaf3a4
|
@ -426,6 +426,8 @@ func (c *Contact) MarshalJSON() ([]byte, error) {
|
||||||
|
|
||||||
if c.mutual() {
|
if c.mutual() {
|
||||||
item.ContactRequestState = ContactRequestStateMutual
|
item.ContactRequestState = ContactRequestStateMutual
|
||||||
|
} else if c.dismissed() {
|
||||||
|
item.ContactRequestState = ContactRequestStateDismissed
|
||||||
} else if c.added() {
|
} else if c.added() {
|
||||||
item.ContactRequestState = ContactRequestStateSent
|
item.ContactRequestState = ContactRequestStateSent
|
||||||
} else if c.hasAddedUs() {
|
} else if c.hasAddedUs() {
|
||||||
|
|
Loading…
Reference in New Issue