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>
This commit is contained in:
Joas Schilling 2024-04-17 11:32:16 +02:00
parent 4c1d4aeccb
commit 587a056db3
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 6 additions and 3 deletions

View File

@ -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);