Skip to content

Commit

Permalink
Add team prefs to boot data
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jan 10, 2025
1 parent b8b7a4c commit abcc246
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion users.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,19 @@ type ClientUserBootSubteams struct {
Self []string `json:"self"`
}

type TeamPrefs struct {
MsgEditWindowMins *int `json:"msg_edit_window_mins,omitempty"`
AllowMessageDeletion *bool `json:"allow_message_deletion,omitempty"`
}

type BootTeam struct {
TeamInfo
Prefs TeamPrefs
}

type ClientUserBootResponse struct {
Self User `json:"self"`
Team TeamInfo `json:"team"`
Team BootTeam `json:"team"`

IsOpen []string `json:"is_open"`
Channels []BootChannel `json:"channels"`
Expand Down

0 comments on commit abcc246

Please sign in to comment.