mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
feat(userstatus): add busy capability
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
parent
2aa6894c38
commit
b819d71337
4 changed files with 13 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ class Capabilities implements ICapability {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return array{user_status: array{enabled: bool, restore: bool, supports_emoji: bool}}
|
||||
* @return array{user_status: array{enabled: bool, restore: bool, supports_emoji: bool, supports_busy: bool}}
|
||||
*/
|
||||
public function getCapabilities() {
|
||||
return [
|
||||
|
|
@ -31,6 +31,7 @@ class Capabilities implements ICapability {
|
|||
'enabled' => true,
|
||||
'restore' => true,
|
||||
'supports_emoji' => $this->emojiHelper->doesPlatformSupportEmoji(),
|
||||
'supports_busy' => true,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
"required": [
|
||||
"enabled",
|
||||
"restore",
|
||||
"supports_emoji"
|
||||
"supports_emoji",
|
||||
"supports_busy"
|
||||
],
|
||||
"properties": {
|
||||
"enabled": {
|
||||
|
|
@ -42,6 +43,9 @@
|
|||
},
|
||||
"supports_emoji": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"supports_busy": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ class CapabilitiesTest extends TestCase {
|
|||
'enabled' => true,
|
||||
'restore' => true,
|
||||
'supports_emoji' => $supportsEmojis,
|
||||
'supports_busy' => true,
|
||||
]
|
||||
], $this->capabilities->getCapabilities());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4185,7 +4185,8 @@
|
|||
"required": [
|
||||
"enabled",
|
||||
"restore",
|
||||
"supports_emoji"
|
||||
"supports_emoji",
|
||||
"supports_busy"
|
||||
],
|
||||
"properties": {
|
||||
"enabled": {
|
||||
|
|
@ -4196,6 +4197,9 @@
|
|||
},
|
||||
"supports_emoji": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"supports_busy": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue