mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #43530 from nextcloud/backport/43464/stable28
[stable28] fix(userstatus): add back 0 timestamp for status without message
This commit is contained in:
commit
e108fd2753
1 changed files with 7 additions and 1 deletions
|
|
@ -297,7 +297,13 @@ class StatusService {
|
|||
$userStatus->setCustomIcon(null);
|
||||
$userStatus->setCustomMessage($customMessage);
|
||||
$userStatus->setClearAt(null);
|
||||
$userStatus->setStatusMessageTimestamp($this->timeFactory->now()->getTimestamp());
|
||||
if ($this->predefinedStatusService->getTranslatedStatusForId($messageId) !== null
|
||||
|| ($customMessage !== null && $customMessage !== '')) {
|
||||
// Only track status message ID if there is one
|
||||
$userStatus->setStatusMessageTimestamp($this->timeFactory->now()->getTimestamp());
|
||||
} else {
|
||||
$userStatus->setStatusMessageTimestamp(0);
|
||||
}
|
||||
|
||||
if ($userStatus->getId() !== null) {
|
||||
return $this->mapper->update($userStatus);
|
||||
|
|
|
|||
Loading…
Reference in a new issue