PLT-4317: Fix Desktop App platform in sessions list. (#5048)

Incidentally fixes displaying the Linux icon next to sessions on Linux
at the same time.
Этот коммит содержится в:
George Goldberg
2017-01-13 13:47:10 +00:00
коммит произвёл enahum
родитель 0196137dec
Коммит 6c814c72ec
3 изменённых файлов: 16 добавлений и 0 удалений

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

@@ -636,6 +636,10 @@ func doLogin(c *Context, w http.ResponseWriter, r *http.Request, user *model.Use
bname = "unknown"
}
if strings.Contains(r.UserAgent(), "Mattermost") {
bname = "Desktop App"
}
if bversion == "" {
bversion = "0.0"
}