[FIX] preview pdf its not working (#14419)

pull/14420/head
Guilherme Gazzo 7 years ago committed by GitHub
parent 34e58da4c4
commit 92f5da600f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/message-attachments/client/messageAttachment.js

@ -72,8 +72,8 @@ Template.messageAttachment.helpers({
return this.type === 'file';
},
isPDF() {
if (this.type === 'file' && this.title_link.endsWith('.pdf') && Template.parentData().file) {
this.fileId = Template.parentData().file._id;
if (this.type === 'file' && this.title_link.endsWith('.pdf') && Template.parentData().msg.file) {
this.fileId = Template.parentData().msg.file._id;
return true;
}
return false;

Loading…
Cancel
Save