MM-40813: Use config service more extensively (#19679)

https://mattermost.atlassian.net/browse/MM-40816

```release-note
NONE
```

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Agniva De Sarker
2022-03-07 20:48:55 +05:30
коммит произвёл GitHub
родитель cf6aa85d28
Коммит a2fc602bc2
6 изменённых файлов: 14 добавлений и 14 удалений

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

@@ -255,7 +255,7 @@ func (a *App) UpdateLastActivityAtIfNeeded(session model.Session) {
// A new ExpiresAt is only written if enough time has elapsed since last update.
// Returns true only if the session was extended.
func (a *App) ExtendSessionExpiryIfNeeded(session *model.Session) bool {
if !*a.Srv().Config().ServiceSettings.ExtendSessionLengthWithActivity {
if !*a.Config().ServiceSettings.ExtendSessionLengthWithActivity {
return false
}