Skip to content

Commit

Permalink
User.icon_data
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Jul 29, 2021
1 parent 02fa31f commit 97849ee
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v.1.38.0
- User.icon_data field
- all icon_data fields now are not nullable

v.1.37.1
- tdmocks submodule

Expand Down
4 changes: 2 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type ChatShort struct {
DisplayName string `json:"display_name"`

// Icon data
Icons *IconData `json:"icons"`
Icons IconData `json:"icons"`
}

// Minimal chat representation for deletion
Expand Down Expand Up @@ -51,7 +51,7 @@ type Chat struct {
DisplayName string `json:"display_name"`

// Icons info
Icons *IconData `json:"icons"`
Icons IconData `json:"icons"`

// Include unread messages to counters
CountersEnabled bool `json:"counters_enabled,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions contact.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type Contact struct {
ContactPhone string `json:"contact_phone"`

// Icons data
Icons *IconData `json:"icons"`
Icons IconData `json:"icons"`

// Role in this team
Role string `json:"role"`
Expand Down Expand Up @@ -207,5 +207,5 @@ type ContactShort struct {
ShortName string `json:"short_name"`

// Icons data
Icons *IconData `json:"icons"`
Icons IconData `json:"icons"`
}
2 changes: 1 addition & 1 deletion server_call_buzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type serverCallBuzzParams struct {
Jid JID `json:"jid"`

// Chat icons
Icons *IconData `json:"icons"`
Icons IconData `json:"icons"`

// Chat title
DisplayName string `json:"display_name"`
Expand Down
3 changes: 3 additions & 0 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ type User struct {

// Finish silently time (no pushes, no sounds)
QuietTimeFinish *string `json:"quiet_time_finish"`

// Icon data
Icons IconData `json:"icons"`
}

// Account data with extra information
Expand Down

0 comments on commit 97849ee

Please sign in to comment.