mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #54241 from nextcloud/feat/noid/add-busy-status-capability
feat(userstatus): add busy capability
This commit is contained in:
commit
84323ff6dd
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