[Xfce4-commits] <postler:master> GetThread should return parent if there are no replies
Christian Dywan
noreply at xfce.org
Sun Jun 26 03:20:04 CEST 2011
Updating branch refs/heads/master
to 7829bf3844f3c5d0fb5167324b167d8f3a04b07f (commit)
from 0a161d84b7176a31cad7a64fc9812ebb35883ca6 (commit)
commit 7829bf3844f3c5d0fb5167324b167d8f3a04b07f
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Jun 25 23:31:46 2011 +0200
GetThread should return parent if there are no replies
postler/postler-service.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/postler/postler-service.vala b/postler/postler-service.vala
index ca578a9..bb0713d 100644
--- a/postler/postler-service.vala
+++ b/postler/postler-service.vala
@@ -399,7 +399,11 @@ namespace Postler {
}
public string[] get_thread (string thread) throws GLib.Error {
- return index.get_thread (thread);
+ string[] ids = index.get_thread (thread);
+ /* If this is a single message, return the parent itself */
+ if (ids[0] == null)
+ ids = { thread };
+ return ids;
}
public signal void got_message (GLib.HashTable<string,Variant> message, int64 position);
More information about the Xfce4-commits
mailing list