diff options
author | Joas Schilling <coding@schilljs.com> | 2024-04-17 11:32:16 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-04-17 11:32:16 +0200 |
commit | 587a056db35a1446f45c21f86ab66cf73be83426 (patch) | |
tree | 6ba58f61c85375cb5579e4c9c66683df670e8858 /apps/user_status/lib | |
parent | 4c1d4aeccb0f87310bcb1055775dedcd3c34549e (diff) | |
download | nextcloud-server-587a056db35a1446f45c21f86ab66cf73be83426.tar.gz nextcloud-server-587a056db35a1446f45c21f86ab66cf73be83426.zip |
fix(status): Update status time when reverting to it manually
This prevents the DAV meeting status from overwriting it again
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status/lib')
-rw-r--r-- | apps/user_status/lib/Service/StatusService.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/user_status/lib/Service/StatusService.php b/apps/user_status/lib/Service/StatusService.php index be3a12ef44d..d6e857520df 100644 --- a/apps/user_status/lib/Service/StatusService.php +++ b/apps/user_status/lib/Service/StatusService.php @@ -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); |