feat(federation): Add capabilities for the federation feature and con… #18328
Annotations
3 errors
Run coding standards check:
lib/Capabilities.php#L62
lib/Capabilities.php:62:13: MoreSpecificReturnType: The declared return type 'array{spreed?: array{config: array{attachments: array{allowed: bool, folder?: string}, call: array{'breakout-rooms': bool, 'can-enable-sip': bool, 'can-upload-background': bool, 'predefined-backgrounds': array<array-key, string>, 'recording-consent': int, 'sip-dialout-enabled': bool, 'sip-enabled': bool, 'supported-reactions': array<array-key, string>, enabled: bool, recording: bool}, chat: array{'has-translation-providers': bool, 'max-length': int, 'read-privacy': int, 'typing-privacy': int}, conversations: array{'can-create': bool}, federation: array{'trusted-servers': bool, enabled: bool, incoming: bool, outgoing: bool}, previews: array{'max-gif-size': int}, signaling: array{'hello-v2-token-key'?: string, 'session-ping-limit': int}}, features: array<array-key, string>, version: string}}' for OCA\Talk\Capabilities::getCapabilities is more specific than the inferred return type 'array{spreed?: array{config: array{attachments: array{allowed: bool, folder?: string}, call: array{'breakout-rooms': bool, 'can-enable-sip': bool, 'can-upload-background': bool, 'predefined-backgrounds': array<array-key, string>, 'recording-consent': 0|1|2, 'sip-dialout-enabled': bool, 'sip-enabled': bool, 'supported-reactions': list{'❤️', '🎉', '👏', '👍', '👎', '😂', '🤩', '🤔', '😲', '😥'}, enabled: bool, recording: bool}, chat: array{'has-translation-providers': bool, 'max-length': 32000, 'read-privacy': int, 'typing-privacy': int}, conversations: array{'can-create': bool}, federation: array{'incoming-enabled'?: false, 'only-trusted-servers'?: true, 'outgoing-enabled'?: false, 'trusted-servers'?: bool, enabled: bool, incoming?: bool, outgoing?: bool}, previews: array{'max-gif-size': int}, signaling: array{'hello-v2-token-key'?: non-falsy-string, 'session-ping-limit': int<0, max>}}, features: list{0: 'audio'|'avatar'|'bots-v1'|'breakout-rooms-v1'|'chat-get-context'|'chat-keep-notifications'|'chat-permission'|'chat-read-last'|'chat-read-marker'|'chat-read-status'|'chat-reference-id'|'chat-replies'|'chat-unread'|'chat-v2'|'circles-support'|'clear-history'|'conversation-call-flags'|'conversation-permissions'|'conversation-v4'|'delete-messages'|'delete-messages-unlimited'|'direct-mention-flag'|'edit-messages'|'empty-group-room'|'favorites'|'federation-v1'|'force-mute'|'geo-location-sharing'|'guest-display-names'|'guest-signaling'|'in-call-flags'|'invite-groups-and-mails'|'last-room-activity'|'listable-rooms'|'locked-one-to-one-rooms'|'markdown-messages'|'media-caption'|'mention-flag'|'message-expiration'|'multi-room-users'|'no-ping'|'note-to-self'|'notification-calls'|'notification-levels'|'phonebook-search'|'publishing-permissions'|'raise-hand'|'reactions'|'read-only-rooms'|'recording-consent'|'recording-v1'|'remind-me-later'|'rich-object-delete'|'rich-object-list-media'|'rich-object-sharing'|'room-description'|'send-call-notification'|'session-state'|'signaling-v3'|'silent-call'|'silent-send'|'silent-send-state'|'single-conversation-status'|'sip-support'|'sip-support-dialout'|'sip-support-nopin'|'start-call-flag'|'system-messages'|'talk-polls'|'temp-user-avatar-api'|'typing-privacy'|'unified-search'|'video'|'voice-message-sharing'|'webinary-lobby', 1?: 'audio'|'avatar'|'bots-v1'|'breakout-rooms-v1'|'chat-get-context'|'chat-keep-notifications'|'chat-permission'|'chat-read-last'|'chat-read-marker'|'chat-read-status'|'chat-reference-id'|'chat-replies'|'chat-unread'|'chat-v2'|'circles-support'|'clear-history'|'conversation-call-flags'|'conversation-permissions'|'conversation-v4'|'delete-messages'|'delete-messages-unlimited'|'direct-mention-flag'|'edit-messages'|'empty-group-room'|'favorites'|'federation-v1'|'force-mute'|'geo-location-sharing'|'guest-display-names'|'guest-signaling'|'in-call-flags'|'invite-groups-and-mails'|'last-room-activity'|'listable-rooms'|'locked-one-to-one-rooms'|'markdown-messages'|'media-caption'|'mention-flag'|'message-expiration'|'multi-room-users'|'no-ping'|'note-to-self'|'notification-calls'|'notification-levels'|'phonebook-search'|'publishing
|
Run coding standards check:
lib/Capabilities.php#L264
lib/Capabilities.php:264:10: LessSpecificReturnStatement: The type 'array{spreed: array{config: array{attachments: array{allowed: bool, folder?: string}, call: array{'breakout-rooms': bool, 'can-enable-sip': bool, 'can-upload-background': bool, 'predefined-backgrounds': array<array-key, string>, 'recording-consent': 0|1|2, 'sip-dialout-enabled': bool, 'sip-enabled': bool, 'supported-reactions': list{'❤️', '🎉', '👏', '👍', '👎', '😂', '🤩', '🤔', '😲', '😥'}, enabled: bool, recording: bool}, chat: array{'has-translation-providers': bool, 'max-length': 32000, 'read-privacy': int, 'typing-privacy': int}, conversations: array{'can-create': bool}, federation: array{'incoming-enabled'?: false, 'only-trusted-servers'?: true, 'outgoing-enabled'?: false, 'trusted-servers'?: bool, enabled: bool, incoming?: bool, outgoing?: bool}, previews: array{'max-gif-size': int}, signaling: array{'hello-v2-token-key'?: non-falsy-string, 'session-ping-limit': int<0, max>}}, features: list{0: 'audio'|'avatar'|'bots-v1'|'breakout-rooms-v1'|'chat-get-context'|'chat-keep-notifications'|'chat-permission'|'chat-read-last'|'chat-read-marker'|'chat-read-status'|'chat-reference-id'|'chat-replies'|'chat-unread'|'chat-v2'|'circles-support'|'clear-history'|'conversation-call-flags'|'conversation-permissions'|'conversation-v4'|'delete-messages'|'delete-messages-unlimited'|'direct-mention-flag'|'edit-messages'|'empty-group-room'|'favorites'|'federation-v1'|'force-mute'|'geo-location-sharing'|'guest-display-names'|'guest-signaling'|'in-call-flags'|'invite-groups-and-mails'|'last-room-activity'|'listable-rooms'|'locked-one-to-one-rooms'|'markdown-messages'|'media-caption'|'mention-flag'|'message-expiration'|'multi-room-users'|'no-ping'|'note-to-self'|'notification-calls'|'notification-levels'|'phonebook-search'|'publishing-permissions'|'raise-hand'|'reactions'|'read-only-rooms'|'recording-consent'|'recording-v1'|'remind-me-later'|'rich-object-delete'|'rich-object-list-media'|'rich-object-sharing'|'room-description'|'send-call-notification'|'session-state'|'signaling-v3'|'silent-call'|'silent-send'|'silent-send-state'|'single-conversation-status'|'sip-support'|'sip-support-dialout'|'sip-support-nopin'|'start-call-flag'|'system-messages'|'talk-polls'|'temp-user-avatar-api'|'typing-privacy'|'unified-search'|'video'|'voice-message-sharing'|'webinary-lobby', 1?: 'audio'|'avatar'|'bots-v1'|'breakout-rooms-v1'|'chat-get-context'|'chat-keep-notifications'|'chat-permission'|'chat-read-last'|'chat-read-marker'|'chat-read-status'|'chat-reference-id'|'chat-replies'|'chat-unread'|'chat-v2'|'circles-support'|'clear-history'|'conversation-call-flags'|'conversation-permissions'|'conversation-v4'|'delete-messages'|'delete-messages-unlimited'|'direct-mention-flag'|'edit-messages'|'empty-group-room'|'favorites'|'federation-v1'|'force-mute'|'geo-location-sharing'|'guest-display-names'|'guest-signaling'|'in-call-flags'|'invite-groups-and-mails'|'last-room-activity'|'listable-rooms'|'locked-one-to-one-rooms'|'markdown-messages'|'media-caption'|'mention-flag'|'message-expiration'|'multi-room-users'|'no-ping'|'note-to-self'|'notification-calls'|'notification-levels'|'phonebook-search'|'publishing-permissions'|'raise-hand'|'reactions'|'read-only-rooms'|'recording-consent'|'recording-v1'|'remind-me-later'|'rich-object-delete'|'rich-object-list-media'|'rich-object-sharing'|'room-description'|'send-call-notification'|'session-state'|'signaling-v3'|'silent-call'|'silent-send'|'silent-send-state'|'single-conversation-status'|'sip-support'|'sip-support-dialout'|'sip-support-nopin'|'start-call-flag'|'system-messages'|'talk-polls'|'temp-user-avatar-api'|'typing-privacy'|'unified-search'|'video'|'voice-message-sharing'|'webinary-lobby', 2?: 'audio'|'avatar'|'bots-v1'|'breakout-rooms-v1'|'chat-get-context'|'chat-keep-notifications'|'chat-permission'|'chat-read-last'|'chat-read-marker'|'chat-read-status'|'chat-reference-id'|'chat-replies'|'chat-unread'|'chat-v2'|'circles-support'|'clear-history'|'conversation-call-flags'|'conversation-permissions'|'conversation-v4'|'delete-messages'|'delete-mes
|
Run coding standards check
Process completed with exit code 2.
|
Loading