summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-26 16:18:28 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-27 12:46:30 -0400
commit09b38404fa9aadd1b359863024f7def0f34de823 (patch)
treec4027f76a9607c823b25e568c944d21b57f34071 /model
parent95c464b167a6b1324bb829271b89e88900e278a2 (diff)
downloadchat-09b38404fa9aadd1b359863024f7def0f34de823.tar.gz
chat-09b38404fa9aadd1b359863024f7def0f34de823.tar.bz2
chat-09b38404fa9aadd1b359863024f7def0f34de823.zip
Renamed Channel.Description to Channel.Header on the server
Diffstat (limited to 'model')
-rw-r--r--model/channel.go6
-rw-r--r--model/client.go4
2 files changed, 5 insertions, 5 deletions
diff --git a/model/channel.go b/model/channel.go
index 076ddf0b5..caf1bfd80 100644
--- a/model/channel.go
+++ b/model/channel.go
@@ -24,7 +24,7 @@ type Channel struct {
Type string `json:"type"`
DisplayName string `json:"display_name"`
Name string `json:"name"`
- Description string `json:"description"`
+ Header string `json:"header"`
LastPostAt int64 `json:"last_post_at"`
TotalMsgCount int64 `json:"total_msg_count"`
ExtraUpdateAt int64 `json:"extra_update_at"`
@@ -89,8 +89,8 @@ func (o *Channel) IsValid() *AppError {
return NewAppError("Channel.IsValid", "Invalid type", "id="+o.Id)
}
- if len(o.Description) > 1024 {
- return NewAppError("Channel.IsValid", "Invalid description", "id="+o.Id)
+ if len(o.Header) > 1024 {
+ return NewAppError("Channel.IsValid", "Invalid header", "id="+o.Id)
}
if len(o.CreatorId) > 26 {
diff --git a/model/client.go b/model/client.go
index 48a560838..c788ead67 100644
--- a/model/client.go
+++ b/model/client.go
@@ -443,8 +443,8 @@ func (c *Client) UpdateChannel(channel *Channel) (*Result, *AppError) {
}
}
-func (c *Client) UpdateChannelDesc(data map[string]string) (*Result, *AppError) {
- if r, err := c.DoApiPost("/channels/update_desc", MapToJson(data)); err != nil {
+func (c *Client) UpdateChannelHeader(data map[string]string) (*Result, *AppError) {
+ if r, err := c.DoApiPost("/channels/update_header", MapToJson(data)); err != nil {
return nil, err
} else {
return &Result{r.Header.Get(HEADER_REQUEST_ID),