diff options
author | Corey Hulen <corey@hulen.com> | 2016-01-06 14:47:25 -0600 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-01-06 14:47:25 -0600 |
commit | fe7d27ba4b04537e39357227bcc55f8b92ee6ee2 (patch) | |
tree | 53fec096f1e388538553067e545d01189c8edaf2 /web/react/components/file_attachment.jsx | |
parent | 0eb145218edb37d911cc5ec135b0006f866a44b2 (diff) | |
parent | a6ba1a17fe22a72d7058621cb29e9f60d9de0a08 (diff) | |
download | chat-fe7d27ba4b04537e39357227bcc55f8b92ee6ee2.tar.gz chat-fe7d27ba4b04537e39357227bcc55f8b92ee6ee2.tar.bz2 chat-fe7d27ba4b04537e39357227bcc55f8b92ee6ee2.zip |
Merge pull request #1815 from hmhealey/plt771
PLT-771 Improved Audio/Video preview for unsupported formats
Diffstat (limited to 'web/react/components/file_attachment.jsx')
-rw-r--r-- | web/react/components/file_attachment.jsx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx index 2474b3d8a..c10269680 100644 --- a/web/react/components/file_attachment.jsx +++ b/web/react/components/file_attachment.jsx @@ -125,10 +125,6 @@ export default class FileAttachment extends React.Component { getFileInfoFromName(name) { var fileInfo = utils.splitFileLocation(name); - // This is a temporary patch to fix issue with old files using absolute paths - if (fileInfo.path.indexOf('/api/v1/files/get') !== -1) { - fileInfo.path = fileInfo.path.split('/api/v1/files/get')[1]; - } fileInfo.path = utils.getWindowLocationOrigin() + '/api/v1/files/get' + fileInfo.path; return fileInfo; |