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.
Этот коммит содержится в:
коммит произвёл
enahum
родитель
0196137dec
Коммит
6c814c72ec
@@ -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"
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user