Skip to content
Snippets Groups Projects
Commit ad58d138 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

UserStatus: no message means clear status message. This fixes #23332


Signed-off-by: default avatarSimon Spannagel <simonspa@kth.se>
parent 9d5362dd
No related branches found
No related tags found
No related merge requests found
...@@ -135,10 +135,10 @@ class UserStatusController extends OCSController { ...@@ -135,10 +135,10 @@ class UserStatusController extends OCSController {
* @throws OCSBadRequestException * @throws OCSBadRequestException
*/ */
public function setCustomMessage(?string $statusIcon, public function setCustomMessage(?string $statusIcon,
string $message, ?string $message,
?int $clearAt): DataResponse { ?int $clearAt): DataResponse {
try { try {
if ($message !== '') { if ($message !== null && $message !== '') {
$status = $this->service->setCustomMessage($this->userId, $statusIcon, $message, $clearAt); $status = $this->service->setCustomMessage($this->userId, $statusIcon, $message, $clearAt);
} else { } else {
$this->service->clearMessage($this->userId); $this->service->clearMessage($this->userId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment