aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-log-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index ec0fa413a..f800a5f99 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -172,6 +172,9 @@ enum
#define CALENDAR_ICON "stock_calendar"
+/* Seconds between two messages to be considered one conversation */
+#define MAX_GAP 30*60
+
typedef enum
{
EVENT_CALL_INCOMING = 1 << 0,
@@ -635,7 +638,7 @@ model_is_parent (GtkTreeModel *model,
COL_EVENTS_TS, &timestamp,
-1);
- if (ABS (tpl_event_get_timestamp (event) - timestamp) < 1800)
+ if (ABS (tpl_event_get_timestamp (event) - timestamp) < MAX_GAP)
{
/* The gap is smaller than 30 min */
model_parent = *iter;