Fixing group code review issues

Этот коммит содержится в:
=Corey Hulen
2015-10-22 10:17:25 -07:00
родитель cbbee5cadb
Коммит ab18616725
3 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@@ -430,7 +430,7 @@ func Login(c *Context, w http.ResponseWriter, r *http.Request, user *model.User,
w.Header().Set(model.HEADER_TOKEN, session.Token)
tokens := GetMultiSessionCookie(r)
multiToken = ""
multiToken := ""
seen := make(map[string]string)
seen[session.TeamId] = session.TeamId
for _, token := range tokens {

Просмотреть файл

@@ -96,7 +96,8 @@ func ShouldSendEvent(webCon *WebConn, msg *model.Message) bool {
}
} else {
// Don't share a user's view events with other users
if msg.Action == model.ACTION_CHANNEL_VIEWED {
// but you still need to share it with yourself
if webCon.UserId != msg.UserId && msg.Action == model.ACTION_CHANNEL_VIEWED {
return false
}