Merge pull request #44878 from nextcloud/bugfix/44877/keep-manually-restored-status
fix(status): Update status time when reverting to it manually
This commit is contained in:
commit
f325e404d6
|
@ -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 New Issue