mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Merge pull request #44885 from nextcloud/backport/44878/stable29
[stable29] fix(status): Update status time when reverting to it manually
This commit is contained in:
commit
053cb7455b
1 changed files with 6 additions and 3 deletions
|
|
@ -532,9 +532,12 @@ class StatusService {
|
|||
return null;
|
||||
}
|
||||
|
||||
if ($revertedManually && $backupUserStatus->getStatus() === IUserStatus::OFFLINE) {
|
||||
// When the user reverts the status manually they are online
|
||||
$backupUserStatus->setStatus(IUserStatus::ONLINE);
|
||||
if ($revertedManually) {
|
||||
if ($backupUserStatus->getStatus() === IUserStatus::OFFLINE) {
|
||||
// When the user reverts the status manually they are online
|
||||
$backupUserStatus->setStatus(IUserStatus::ONLINE);
|
||||
}
|
||||
$backupUserStatus->setStatusTimestamp($this->timeFactory->getTime());
|
||||
}
|
||||
|
||||
$backupUserStatus->setIsBackup(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue