[geary: 7/66] Update local folder message count property during cleanup
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 7/66] Update local folder message count property during cleanup
- Date: Tue, 30 Jun 2020 07:07:59 +0000 (UTC)
commit 15561a1108afc9962672d9b7c1973da838d1ed37
Author: Chris Heywood <15127-creywood users noreply gitlab gnome org>
Date: Wed Jan 8 11:33:48 2020 +0100
Update local folder message count property during cleanup
Likely WIP with other properties to be added
src/engine/imap-db/imap-db-folder.vala | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/engine/imap-db/imap-db-folder.vala b/src/engine/imap-db/imap-db-folder.vala
index b6ff465c8..06ee87a7b 100644
--- a/src/engine/imap-db/imap-db-folder.vala
+++ b/src/engine/imap-db/imap-db-folder.vala
@@ -936,6 +936,9 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics {
stmt.exec(cancellable);
+ // Update local message count
+ this.properties.set_status_message_count(this.properties.email_total - deleted_ids.size,
true);
+
return Db.TransactionOutcome.COMMIT;
} else {
return Db.TransactionOutcome.DONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]