empathy r2622 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2622 - trunk/libempathy
- Date: Fri, 6 Mar 2009 11:53:42 +0000 (UTC)
Author: xclaesse
Date: Fri Mar 6 11:53:42 2009
New Revision: 2622
URL: http://svn.gnome.org/viewvc/empathy?rev=2622&view=rev
Log:
Use tp_strdiff in empathy_message_equal to compare body.
From: Xavier Claessens <xclaesse gmail com>
Modified:
trunk/libempathy/empathy-message.c
Modified: trunk/libempathy/empathy-message.c
==============================================================================
--- trunk/libempathy/empathy-message.c (original)
+++ trunk/libempathy/empathy-message.c Fri Mar 6 11:53:42 2009
@@ -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 @@
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]