MM-25394 session expired push notifications (#14732)
* new job type created that checks for expired mobile sessions and pushes notifications. * only send session expired notifications if ExtendSessionLengthWithActivity is enabled. * includes schema change: field added to Sessions table
Этот коммит содержится в:
@@ -353,6 +353,8 @@ type SessionStore interface {
|
||||
Save(session *model.Session) (*model.Session, *model.AppError)
|
||||
GetSessions(userId string) ([]*model.Session, *model.AppError)
|
||||
GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
|
||||
GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, *model.AppError)
|
||||
UpdateExpiredNotify(sessionid string, notified bool) *model.AppError
|
||||
Remove(sessionIdOrToken string) *model.AppError
|
||||
RemoveAllSessions() *model.AppError
|
||||
PermanentDeleteSessionsByUser(teamId string) *model.AppError
|
||||
|
||||
Ссылка в новой задаче
Block a user