PLT-1326: Enable channel posts of type join or leave not trigger unread notifications

Этот коммит содержится в:
Florian Orben
2015-12-04 02:07:47 +01:00
родитель d5d66214db
Коммит 14d1ec5191
14 изменённых файлов: 93 добавлений и 13 удалений

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

@@ -421,7 +421,7 @@ func JoinChannel(c *Context, channelId string, role string) {
c.Err = err
return
}
PostUserAddRemoveMessageAndForget(c, channel.Id, fmt.Sprintf(`User %v has joined this channel.`, user.Username))
PostUserAddRemoveMessageAndForget(c, channel.Id, fmt.Sprintf(`%v has joined the channel.`, user.Username))
} else {
c.Err = model.NewAppError("join", "You do not have the appropriate permissions", "")
c.Err.StatusCode = http.StatusForbidden