aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-03 04:53:43 +0800
committerXavier Claessens <xavier.claessens@collabora.co.uk>2013-10-03 22:11:43 +0800
commit864a9b3129b14146ba0d2e893da99ced1960a678 (patch)
treeed8bd0fb71ef54e93dc3b6b7d905341081a63da6 /libempathy-gtk/empathy-chat.c
parent7c2e5a7f9d0ce3ee96f34fd954e6f147abd0c8b0 (diff)
downloadgsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.tar
gsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.tar.gz
gsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.tar.bz2
gsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.tar.lz
gsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.tar.xz
gsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.tar.zst
gsoc2013-empathy-864a9b3129b14146ba0d2e893da99ced1960a678.zip
EmpathyMessage: remove flags, they are useless
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index a9f1bb872..c6cc8e081 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1434,7 +1434,6 @@ chat_should_highlight (EmpathyChat *chat,
{
EmpathyChatPriv *priv = GET_PRIV (chat);
const gchar *msg;
- TpChannelTextMessageFlags flags;
g_return_val_if_fail (EMPATHY_IS_MESSAGE (message), FALSE);
@@ -1451,8 +1450,7 @@ chat_should_highlight (EmpathyChat *chat,
return FALSE;
}
- flags = empathy_message_get_flags (message);
- if (flags & TP_CHANNEL_TEXT_MESSAGE_FLAG_SCROLLBACK) {
+ if (empathy_message_is_backlog (message)) {
/* 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;