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

Merge branch 'fix-message-delete' into 'develop'

Fixed delete of messages from local database

Closes #147

See merge request !152
parents 0f090668 08d1fa28
......@@ -87,7 +87,11 @@ void Files::deleteExpiredFilesFromDbs(int days)
userName.toUtf8().constData());
return;
}
const QList<qint64> msgIDList(fDb->cleanFilesInDb(days));
/*
* Files should be deleted from the database with a delay - after
* they have been really deleted from the server.
*/
const QList<qint64> msgIDList(fDb->cleanFilesInDb(days + 1));
if (msgIDList.isEmpty()) {
continue;
}
......
......@@ -427,7 +427,11 @@ void Messages::deleteExpiredMessagesFromDbs(int days)
userName.toUtf8().constData());
return;
}
msgIDList = msgDb->getExpireMessageListFromDb(days);
/*
* Messages should be deleted from the database with a delay -
* after they have been really deleted from the server.
*/
msgIDList = msgDb->getExpireMessageListFromDb(days + 1);
if (msgIDList.isEmpty()) {
continue;
......
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