Browse Source

Add a capability

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4861/head
Joas Schilling 5 years ago
parent
commit
5db677377a
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 3
      docs/capabilities.md
  2. 1
      lib/Capabilities.php
  3. 1
      tests/php/CapabilitiesTest.php

3
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.

1
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',

1
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',

Loading…
Cancel
Save