Reset status to away after web conn disconnect if necessary (#8988)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
437f9f5b64
Коммит
2114e96f00
@@ -227,6 +227,9 @@ func (a *App) AttachDeviceId(sessionId string, deviceId string, expiresAt int64)
|
||||
|
||||
func (a *App) UpdateLastActivityAtIfNeeded(session model.Session) {
|
||||
now := model.GetMillis()
|
||||
|
||||
a.UpdateWebConnUserActivity(session, now)
|
||||
|
||||
if now-session.LastActivityAt < model.SESSION_ACTIVITY_TIMEOUT {
|
||||
return
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user