diff --git a/docs/capabilities.md b/docs/capabilities.md index faf3b18d96..2383394cb8 100644 --- a/docs/capabilities.md +++ b/docs/capabilities.md @@ -64,3 +64,6 @@ title: Capabilities * `room-description` - A description can be get and set for conversations. * `config => chat => read-privacy` - See `chat-read-status` * `config => previews => max-gif-size` - Maximum size in bytes below which a GIF can be embedded directly in the page at render time. Bigger files will be rendered statically using the preview endpoint instead. Can be set with `occ config:app:set spreed max-gif-size --value=X` where X is the new value in bytes. Defaults to 3 MB. + +## 12.0 +* `delete-messages` - Allows to delete chat messages up to 6 hours for your own messages or when being a moderator. On deleting the message text will be replaced and a follow up system message will make sure clients and users update it in their cache and storage. diff --git a/lib/Capabilities.php b/lib/Capabilities.php index 1f3a547208..668574f0db 100644 --- a/lib/Capabilities.php +++ b/lib/Capabilities.php @@ -68,6 +68,7 @@ class Capabilities implements IPublicCapability { 'last-room-activity', 'no-ping', 'system-messages', + 'delete-messages', 'mention-flag', 'in-call-flags', 'notification-levels', diff --git a/tests/php/CapabilitiesTest.php b/tests/php/CapabilitiesTest.php index b53bf418e5..690e74c712 100644 --- a/tests/php/CapabilitiesTest.php +++ b/tests/php/CapabilitiesTest.php @@ -65,6 +65,7 @@ class CapabilitiesTest extends TestCase { 'last-room-activity', 'no-ping', 'system-messages', + 'delete-messages', 'mention-flag', 'in-call-flags', 'notification-levels',