aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-text-view.c
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2010-04-07 19:19:08 +0800
committerFelix Kaser <f.kaser@gmx.net>2010-04-08 19:24:40 +0800
commit77fd33616f44a907342651a5a2d7e326ad5ccf55 (patch)
tree3cb092e8b291d166a0044325f409f11f687ed6d6 /libempathy-gtk/empathy-chat-text-view.c
parentc92e1b6631677972dbd25b1164d00ea983340fee (diff)
downloadgsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.tar
gsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.tar.gz
gsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.tar.bz2
gsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.tar.lz
gsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.tar.xz
gsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.tar.zst
gsoc2013-empathy-77fd33616f44a907342651a5a2d7e326ad5ccf55.zip
group messages only if the delay is short
messages from the same sender should not be grouped when the delay between two messages is too long (5min). fixes bug #604475
Diffstat (limited to 'libempathy-gtk/empathy-chat-text-view.c')
-rw-r--r--libempathy-gtk/empathy-chat-text-view.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c
index 7f16ab9a3..137a77adb 100644
--- a/libempathy-gtk/empathy-chat-text-view.c
+++ b/libempathy-gtk/empathy-chat-text-view.c
@@ -1308,6 +1308,16 @@ empathy_chat_text_view_get_last_contact (EmpathyChatTextView *view)
return priv->last_contact;
}
+time_t
+empathy_chat_text_view_get_last_timestamp (EmpathyChatTextView *view)
+{
+ EmpathyChatTextViewPriv *priv = GET_PRIV (view);
+
+ g_return_val_if_fail (EMPATHY_IS_CHAT_TEXT_VIEW (view), 0);
+
+ return priv->last_timestamp;
+}
+
void
empathy_chat_text_view_set_only_if_date (EmpathyChatTextView *view,
gboolean only_if_date)