empathy r2603 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2603 - trunk/libempathy
- Date: Fri, 6 Mar 2009 11:52:42 +0000 (UTC)
Author: xclaesse
Date: Fri Mar 6 11:52:41 2009
New Revision: 2603
URL: http://svn.gnome.org/viewvc/empathy?rev=2603&view=rev
Log:
Get last messages for the last day - 1 as well as the last day.
As messages are being logged straight away, the most recent day
will *always* be today.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
Modified:
trunk/libempathy/empathy-log-manager.c
Modified: trunk/libempathy/empathy-log-manager.c
==============================================================================
--- trunk/libempathy/empathy-log-manager.c (original)
+++ trunk/libempathy/empathy-log-manager.c Fri Mar 6 11:52:41 2009
@@ -280,9 +280,19 @@
l = g_list_last (dates);
if (l)
- messages = empathy_log_manager_get_messages_for_date (manager, account,
+ {
+ messages = empathy_log_manager_get_messages_for_date (manager, account,
chat_id, chatroom, l->data);
+ /* The latest date will always be today as messages are logged immediately. */
+ l = g_list_previous (l);
+ if (l)
+ {
+ messages = g_list_concat (messages, empathy_log_manager_get_messages_for_date (
+ manager, account, chat_id, chatroom, l->data));
+ }
+ }
+
g_list_foreach (dates, (GFunc) g_free, NULL);
g_list_free (dates);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]