UserStatus: no message means clear status message. This fixes #23332
Signed-off-by: Simon Spannagel <simonspa@kth.se>
This commit is contained in:
parent
a81b901c71
commit
9750efe5ab
|
@ -135,10 +135,10 @@ class UserStatusController extends OCSController {
|
|||
* @throws OCSBadRequestException
|
||||
*/
|
||||
public function setCustomMessage(?string $statusIcon,
|
||||
string $message,
|
||||
?string $message,
|
||||
?int $clearAt): DataResponse {
|
||||
try {
|
||||
if ($message !== '') {
|
||||
if ($message !== null && $message !== '') {
|
||||
$status = $this->service->setCustomMessage($this->userId, $statusIcon, $message, $clearAt);
|
||||
} else {
|
||||
$this->service->clearMessage($this->userId);
|
||||
|
|
Loading…
Reference in New Issue