Skip to content

Commit

Permalink
Merge pull request #4 from mv-go/patch-1
Browse files Browse the repository at this point in the history
fix(contact): ShortName is never omitted now
  • Loading branch information
sdfsdhgjkbmnmxc authored Sep 20, 2020
2 parents 24185f4 + 3341ef8 commit 50c143f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package tdproto

type Contact struct {
DisplayName string `json:"display_name"`
ShortName string `json:"short_name,omitempty"`
ShortName string `json:"short_name"`
ContactEmail string `json:"contact_email"`
ContactPhone string `json:"contact_phone"`
Icons *IconData `json:"icons"`
Expand Down Expand Up @@ -69,7 +69,7 @@ type ContactCustomFields struct {

type ContactShort struct {
DisplayName string `json:"display_name"`
ShortName string `json:"short_name,omitempty"`
ShortName string `json:"short_name"`
Icons *IconData `json:"icons"`
Jid JID `json:"jid"`
}

0 comments on commit 50c143f

Please sign in to comment.