mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
https://mattermost.atlassian.net/browse/MM-52532 - Replace golint with revive - Add makezero linter - Fix all the required linter failures Some issues in enterprise and public modules are yet to be fixed. We send this to expediate things.
18 lines
420 B
Go
18 lines
420 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
type ChannelData struct {
|
|
Channel *Channel `json:"channel"`
|
|
Member *ChannelMember `json:"member"`
|
|
}
|
|
|
|
func (o *ChannelData) Etag() string {
|
|
var mt int64
|
|
if o.Member != nil {
|
|
mt = o.Member.LastUpdateAt
|
|
}
|
|
|
|
return Etag(o.Channel.Id, o.Channel.UpdateAt, o.Channel.LastPostAt, mt)
|
|
}
|