diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-06-14 00:00:06 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-06-14 00:04:04 +0800 |
commit | 4f4c33a6cab809bae137b9141e0c1697f951e9ec (patch) | |
tree | 5593141313ebe8eb8c839013c3d812df393d6834 /libempathy-gtk/empathy-chat.c | |
parent | fa8a602e9717c2fa778a9f375fb4da407ee7d625 (diff) | |
download | gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.tar gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.tar.gz gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.tar.bz2 gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.tar.lz gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.tar.xz gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.tar.zst gsoc2013-empathy-4f4c33a6cab809bae137b9141e0c1697f951e9ec.zip |
Only decrement unread_messages if it's not an edited message
Prevents ending up with message counts of -1
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 5cee9eb0b..ecf849aaf 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1384,8 +1384,10 @@ chat_message_acknowledged_cb (EmpathyTpChat *tp_chat, empathy_chat_view_message_acknowledged (chat->view, message); - priv->unread_messages--; - g_object_notify (G_OBJECT (chat), "nb-unread-messages"); + if (!empathy_message_is_edit (message)) { + priv->unread_messages--; + g_object_notify (G_OBJECT (chat), "nb-unread-messages"); + } } static void |