Skip to content
Snippets Groups Projects
Commit bfe91287 authored by Léopold Chappuis's avatar Léopold Chappuis Committed by Adrien Béraud
Browse files

updateStatus: prevent status reduction

A very minor adjustment to ensure the status cannot be downgraded.

Change-Id: I1e0fe5461ad05f5cf9f88174b4253e0e63caa3bd
parent 8b17b9e3
No related branches found
No related tags found
No related merge requests found
...@@ -223,7 +223,7 @@ MessageListModel::updateStatus(const QString& id, ...@@ -223,7 +223,7 @@ MessageListModel::updateStatus(const QString& id,
return false; return false;
} }
VectorInt roles; VectorInt roles;
if (it->second.status == newStatus) { if (it->second.status >= newStatus) {
return false; return false;
} }
it->second.status = newStatus; it->second.status = newStatus;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment