diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-01-27 14:29:24 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-01-27 14:40:59 +0100 |
commit | 3418902ac7b5d39f5a3a30111b3b86b26e0f041d (patch) | |
tree | f52b86fff29af33b7f0a4c8b8794bc6ee1a69f1a /src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | |
parent | ee10dad8f42e5340f4abd3ffacf0aa93c6d4a0ba (diff) |
Check capabilities for upload and gif size
Add capability check for allowing attachments.
Fix gif preview max size capability check.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index d12ed3af9..082b98fdb 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -227,8 +227,7 @@ export default { if (this.previewAvailable !== 'yes') { return PREVIEW_TYPE.MIME_ICON } - - const maxGifSize = getCapabilities()?.caps?.spreed?.config?.previews?.['max-gif-size'] || 3145728 + const maxGifSize = getCapabilities()?.spreed?.config?.previews?.['max-gif-size'] || 3145728 if (this.mimetype === 'image/gif' && this.size <= maxGifSize) { return PREVIEW_TYPE.DIRECT } |