Commit ca866946 authored by Karel Slaný's avatar Karel Slaný

Temporarily moved globMessagesModel.overrideDownloaded() up in the call hierarchy.

parent 1afa60da
......@@ -24,7 +24,6 @@
#include <QDebug>
#include "src/settings.h"
#include "src/models/messagemodel.h"
#include "src/net/db_wrapper.h"
#include "src/sqlite/account_db.h"
......@@ -161,7 +160,6 @@ bool DbWrapper::insertCompleteMessageToDb(const QString &userName,
msgDb->setAttachmentDownloaded(msg.dmID, true);
}
globMessagesModel.overrideDownloaded(msg.dmID, true);
txt = tr("Message has been downloaded");
return true;
......
......@@ -30,7 +30,6 @@
#include "src/sqlite/message_db_container.h"
#include "src/sqlite/file_db_container.h"
/*
* Class DbWrapper updates data from http response to database.
* Class is initialised and used in the XmlLayer class (xml_layer.h)
......
......@@ -26,6 +26,7 @@
#include "src/dialogues/dialogues.h"
#include "src/net/isds_wrapper.h"
#include "src/models/accountmodel.h"
#include "src/models/messagemodel.h"
#include "src/settings.h"
IsdsWrapper::IsdsWrapper(QObject *parent)
......@@ -249,6 +250,9 @@ void IsdsWrapper::downloadMessage(const QString &userName, int mesasgeType,
}
}
/* Downloading complete message succeeded. */
globMessagesModel.overrideDownloaded(msgId, true);
m_xmlLayer.isdsGetMsgAuthorInfo(m_isdsSession.isdsCtxMap[userName], msgId);
m_xmlLayer.isdsMarkMsgAsDownloaded(m_isdsSession.isdsCtxMap[userName],
msgId);
......
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