MM-25256 don't idle timeout expire session on mobile (#14583)

Этот коммит содержится в:
Doug Lauder
2020-05-19 12:26:54 -04:00
коммит произвёл GitHub
родитель 0d89ff5d0e
Коммит 906508ee3b

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

@@ -75,7 +75,7 @@ func (a *App) GetSession(token string) (*model.Session, *model.AppError) {
}
if *a.Config().ServiceSettings.SessionIdleTimeoutInMinutes > 0 &&
!session.IsOAuth &&
!session.IsOAuth && !session.IsMobileApp() &&
session.Props[model.SESSION_PROP_TYPE] != model.SESSION_TYPE_USER_ACCESS_TOKEN &&
!*a.Config().ServiceSettings.ExtendSessionLengthWithActivity {