]> git.0d.be Git - empathy.git/commitdiff
Use tp_strdiff in empathy_message_equal to compare body.
authorXavier Claessens <xclaesse@gmail.com>
Fri, 6 Mar 2009 11:53:42 +0000 (11:53 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 6 Mar 2009 11:53:42 +0000 (11:53 +0000)
From: Xavier Claessens <xclaesse@gmail.com>

svn path=/trunk/; revision=2622

libempathy/empathy-message.c

index cde0d362fab184720e877e7966046c71efb0e685..6d74c07225e14ede004eb8b18df8f94b21c6e12b 100644 (file)
@@ -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;
        }