summaryrefslogtreecommitdiffstats
path: root/model/channel_member.go
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-12-21 16:20:11 -0300
committerCorey Hulen <corey@hulen.com>2016-12-21 11:20:11 -0800
commit139cb52c99ac525f44a280803447bbbd88369f23 (patch)
tree49f425a74fc7e090f91ce6ab641d9abf9295dfd7 /model/channel_member.go
parentdce4205699bed68046f9dc6ed371ad959d93ee59 (diff)
downloadchat-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.go8
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"`