make NewMessages feed status more persistent

This commit is contained in:
Martin Rotter 2022-02-13 16:03:17 +01:00
parent 69bcff163f
commit 61f99a6b2c

View file

@ -359,9 +359,11 @@ void FeedDownloader::updateOneFeed(ServiceRoot* acc,
qDebugNN << LOGSEC_FEEDDOWNLOADER
<< "Updating messages in DB took " << tmr.nsecsElapsed() / 1000 << " microseconds.";
feed->setStatus(updated_messages.first > 0 || updated_messages.second > 0
if (feed->status() != Feed::Status::NewMessages) {
feed->setStatus(updated_messages.first > 0 || updated_messages.second > 0
? Feed::Status::NewMessages
: Feed::Status::Normal);
}
qDebugNN << LOGSEC_FEEDDOWNLOADER
<< updated_messages << " messages for feed "