mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Cleanup links
This commit is contained in:
parent
6a92912a3d
commit
32c3f1f059
8 changed files with 25 additions and 133 deletions
|
|
@ -6,7 +6,7 @@ import { i18n } from 'Common/Translator';
|
|||
import { encodeHtml } from 'Common/Html';
|
||||
import { isArray } from 'Common/Utils';
|
||||
|
||||
import { messageViewLink, messageDownloadLink } from 'Common/Links';
|
||||
import { serverRequestRaw } from 'Common/Links';
|
||||
|
||||
import FolderStore from 'Stores/User/Folder';
|
||||
|
||||
|
|
@ -315,14 +315,14 @@ export class MessageModel extends AbstractModel {
|
|||
* @returns {string}
|
||||
*/
|
||||
viewLink() {
|
||||
return messageViewLink(this.requestHash);
|
||||
return serverRequestRaw('ViewAsPlain', this.requestHash);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
downloadLink() {
|
||||
return messageDownloadLink(this.requestHash);
|
||||
return serverRequestRaw('Download', this.requestHash);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue