aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-02 20:42:50 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-02 20:42:50 +0800
commitcf81786242c9143e0c8cb4956006ff29f1309d8d (patch)
tree745ddb3ef8846b901efb33c01b18c143c769f375 /libempathy
parent52376d81c4c2d29ac6845070efbc0785d7989d28 (diff)
downloadgsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.tar
gsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.tar.gz
gsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.tar.bz2
gsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.tar.lz
gsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.tar.xz
gsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.tar.zst
gsoc2013-empathy-cf81786242c9143e0c8cb4956006ff29f1309d8d.zip
Don't highlight scrollback messages (#602288)
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-message.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index bab286585..0fe457886 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -445,6 +445,7 @@ empathy_message_should_highlight (EmpathyMessage *message)
gchar *cf_msg, *cf_to;
gchar *ch;
gboolean ret_val;
+ TpChannelTextMessageFlags flags;
g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), FALSE);
@@ -465,6 +466,13 @@ empathy_message_should_highlight (EmpathyMessage *message)
return FALSE;
}
+ flags = empathy_message_get_flags (message);
+ if (flags & TP_CHANNEL_TEXT_MESSAGE_FLAG_SCROLLBACK) {
+ /* FIXME: Ideally we shouldn't highlight scrollback messages only if they
+ * have already been received by the user before (and so are in the logs) */
+ return FALSE;
+ }
+
cf_msg = g_utf8_casefold (msg, -1);
cf_to = g_utf8_casefold (to, -1);