aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-06 19:53:42 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:53:42 +0800
commiteb9197cd2f5067723120ac19d5303cd1748f79df (patch)
treeb2f95424911d5990e696ac424de4d4ee322ff843 /libempathy
parentd52c71d79c61ae1050d47e4b4ed6cf3b11f69637 (diff)
downloadgsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.tar
gsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.tar.gz
gsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.tar.bz2
gsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.tar.lz
gsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.tar.xz
gsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.tar.zst
gsoc2013-empathy-eb9197cd2f5067723120ac19d5303cd1748f79df.zip
Use tp_strdiff in empathy_message_equal to compare body.
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2622
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-message.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index cde0d362f..6d74c0722 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -26,6 +26,8 @@
#include <string.h>
+#include <telepathy-glib/util.h>
+
#include "empathy-message.h"
#include "empathy-utils.h"
#include "empathy-enum-types.h"
@@ -510,7 +512,7 @@ empathy_message_equal (EmpathyMessage *message1, EmpathyMessage *message2)
priv1 = GET_PRIV (message1);
priv2 = GET_PRIV (message2);
- if (priv1->id == priv2->id && g_str_hash (priv1->body) == g_str_hash (priv2->body)) {
+ if (priv1->id == priv2->id && !tp_strdiff (priv1->body, priv2->body)) {
return TRUE;
}