Avoid exposing AttachmentTS

This commit is contained in:
Daniel Gasienica 2018-04-26 20:20:19 -04:00
parent 86e48a5713
commit d00fb560b0
3 changed files with 5 additions and 2 deletions

View file

@ -177,7 +177,7 @@
return i18n('unnamedFile');
},
saveFile() {
Signal.Types.AttachmentTS.save({
Signal.Types.Attachment.save({
attachment: this.model,
document,
getAbsolutePath: Signal.Migrations.getAbsoluteAttachmentPath,

View file

@ -606,7 +606,7 @@
const saveAttachment = async ({ message } = {}) => {
const attachment = message.attachments[0];
const timestamp = message.received_at;
Signal.Types.AttachmentTS.save({
Signal.Types.Attachment.save({
attachment,
document,
getAbsolutePath: Signal.Migrations.getAbsoluteAttachmentPath,