From 1d51095fdf7beea98a0a89c89d19b1dd1efec927 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 28 Sep 2009 09:52:41 +0200 Subject: Respect "DisableCombineConsecutive" adium theme setting. Fixes bug #596317 --- libempathy-gtk/empathy-theme-adium.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-theme-adium.c') diff --git a/libempathy-gtk/empathy-theme-adium.c b/libempathy-gtk/empathy-theme-adium.c index f4779da67..edb0186e3 100644 --- a/libempathy-gtk/empathy-theme-adium.c +++ b/libempathy-gtk/empathy-theme-adium.c @@ -603,12 +603,15 @@ theme_adium_append_message (EmpathyChatView *view, /* We want to join this message with the last one if * - senders are the same contact, - * - last message was recieved recently, and - * - last message and this message both are/aren't backlog */ + * - last message was recieved recently, + * - last message and this message both are/aren't backlog, and + * - DisableCombineConsecutive is not set in theme's settings */ is_backlog = empathy_message_is_backlog (msg); consecutive = empathy_contact_equal (priv->last_contact, sender) && (timestamp - priv->last_timestamp < MESSAGE_JOIN_PERIOD) && - (is_backlog == priv->last_is_backlog); + (is_backlog == priv->last_is_backlog) && + !tp_asv_get_boolean (priv->data->info, + "DisableCombineConsecutive", NULL); /* Define message classes */ message_classes = g_string_new ("message"); -- cgit v1.2.3