Save work.

This commit is contained in:
Martin Rotter 2017-10-21 22:28:05 +02:00
parent 768203ad28
commit 4b7bebaa9e
1 changed files with 2 additions and 0 deletions

View File

@ -402,6 +402,8 @@ bool GmailNetworkFactory::fillFullMessage(Message& msg, const QJsonObject& json,
} }
else { else {
// We have attachment. // We have attachment.
// TODO: pokračovat tady, přidat způsob jak dát userovi možnost
// stahnout prilohy
msg.m_enclosures.append(Enclosure(QL1S("##") + body["attachmentId"].toString(), msg.m_enclosures.append(Enclosure(QL1S("##") + body["attachmentId"].toString(),
filename + QString(" (%1 KB)").arg(QString::number(body["size"].toInt() / 1000.0)))); filename + QString(" (%1 KB)").arg(QString::number(body["size"].toInt() / 1000.0))));
} }