Commit 71c50883 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Forgot to set hasFileTransferContent to true when fetching message from db

parent c48f0f70
...@@ -496,8 +496,10 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate), ...@@ -496,8 +496,10 @@ MainDb::MainDb (const shared_ptr<Core> &core) : AbstractDb(*new MainDbPrivate),
const long long &contentId = resolveId(row, 0); const long long &contentId = resolveId(row, 0);
Content *content; Content *content;
if (contentType == ContentType::FileTransfer) if (contentType == ContentType::FileTransfer) {
hasFileTransferContent = true;
content = new FileTransferContent(); content = new FileTransferContent();
}
else if (contentType.isFile()) { else if (contentType.isFile()) {
// 2.1 - Fetch contents' file informations. // 2.1 - Fetch contents' file informations.
string name; string name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment