Updating branch refs/heads/master
to 6a322a1f0277b9730219860921d60b8a238e1b27 (commit)
from cf5c974efe2a641efa76090d9ac14f3fe3fdacc5 (commit)
commit 6a322a1f0277b9730219860921d60b8a238e1b27
Author: Christian Dywan <[email protected]>
Date: Sun Jul 17 01:34:19 2011 +0200
Sort thread by date so latest reply comes first
postler/postler-index.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/postler/postler-index.vala b/postler/postler-index.vala
index 9ad1d2c..135f0ac 100644
--- a/postler/postler-index.vala
+++ b/postler/postler-index.vala
@@ -368,7 +368,7 @@ namespace Postler {
unread, flagged, forwarded, replied, priority, date, uri,
excerpt,
(SELECT COUNT (*) FROM messages WHERE threads = ?1 AND
unread = 1) AS replies
FROM messages
- WHERE id = ?1 GROUP BY id ORDER BY date ASC LIMIT 1
+ WHERE threads = ?1 ORDER BY date DESC LIMIT 1
""",
-1, out statement_get) != Sqlite.OK)
throw new GLib.FileError.FAILED (_("Failed to list
messages: %s"), database.errmsg ());
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits