From 71c5088307a50a4bd424e63b27b2698381490eec Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 5 Dec 2017 15:53:55 +0100 Subject: [PATCH] Forgot to set hasFileTransferContent to true when fetching message from db --- src/db/main-db.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/main-db.cpp b/src/db/main-db.cpp index d080f42ec..012a835eb 100644 --- a/src/db/main-db.cpp +++ b/src/db/main-db.cpp @@ -496,8 +496,10 @@ MainDb::MainDb (const shared_ptr &core) : AbstractDb(*new MainDbPrivate), const long long &contentId = resolveId(row, 0); Content *content; - if (contentType == ContentType::FileTransfer) + if (contentType == ContentType::FileTransfer) { + hasFileTransferContent = true; content = new FileTransferContent(); + } else if (contentType.isFile()) { // 2.1 - Fetch contents' file informations. string name;