diff options
author | enahum <nahumhbl@gmail.com> | 2016-12-21 16:20:11 -0300 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-12-21 11:20:11 -0800 |
commit | 139cb52c99ac525f44a280803447bbbd88369f23 (patch) | |
tree | 49f425a74fc7e090f91ce6ab641d9abf9295dfd7 /model/channel_member.go | |
parent | dce4205699bed68046f9dc6ed371ad959d93ee59 (diff) | |
download | chat-139cb52c99ac525f44a280803447bbbd88369f23.tar.gz chat-139cb52c99ac525f44a280803447bbbd88369f23.tar.bz2 chat-139cb52c99ac525f44a280803447bbbd88369f23.zip |
Fix teams unread count (#4848)
* Fix teams unread
* Moving logic out of the store
* fix unit test
Diffstat (limited to 'model/channel_member.go')
-rw-r--r-- | model/channel_member.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/model/channel_member.go b/model/channel_member.go index 4180bb8e6..a607a5059 100644 --- a/model/channel_member.go +++ b/model/channel_member.go @@ -18,6 +18,14 @@ const ( CHANNEL_MARK_UNREAD_MENTION = "mention" ) +type ChannelUnread struct { + TeamId string + TotalMsgCount int64 + MsgCount int64 + MentionCount int64 + NotifyProps StringMap +} + type ChannelMember struct { ChannelId string `json:"channel_id"` UserId string `json:"user_id"` |