From bfe9128755e0659843866fc0c97d9a10fb06d89f Mon Sep 17 00:00:00 2001 From: Leopold Chappuis <leopold.chappuis@savoirfairelinux.com> Date: Wed, 30 Oct 2024 14:39:02 -0400 Subject: [PATCH] updateStatus: prevent status reduction A very minor adjustment to ensure the status cannot be downgraded. Change-Id: I1e0fe5461ad05f5cf9f88174b4253e0e63caa3bd --- src/libclient/messagelistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libclient/messagelistmodel.cpp b/src/libclient/messagelistmodel.cpp index be4ae6c49..bc723f8c0 100644 --- a/src/libclient/messagelistmodel.cpp +++ b/src/libclient/messagelistmodel.cpp @@ -223,7 +223,7 @@ MessageListModel::updateStatus(const QString& id, return false; } VectorInt roles; - if (it->second.status == newStatus) { + if (it->second.status >= newStatus) { return false; } it->second.status = newStatus; -- GitLab