Cleanup Date.fromNow() and friendlySize()

This commit is contained in:
djmaze 2020-10-03 14:02:33 +02:00
parent 2bd9528098
commit a0f8ac0dad
7 changed files with 28 additions and 50 deletions

View file

@ -5,8 +5,7 @@ import { i18n } from 'Common/Translator';
import {
pInt,
encodeHtml,
friendlySize
encodeHtml
} from 'Common/Utils';
import { messageViewLink, messageDownloadLink } from 'Common/Links';
@ -188,7 +187,7 @@ class MessageModel extends AbstractModel {
* @returns {string}
*/
friendlySize() {
return friendlySize(this.size());
return File.friendlySize(this.size());
}
computeSenderEmail() {