aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-17 18:49:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-17 19:03:44 +0800
commit81073b4ead57026a71a8e192947123aef9f9a3cf (patch)
tree97a5f5f88b5d71ee3173cb4c3e34ac66d17b1ac6
parentd0b4b584e9cab568cd6bc25e2ad0fc0a00cfbca2 (diff)
downloadgsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.tar
gsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.tar.gz
gsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.tar.bz2
gsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.tar.lz
gsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.tar.xz
gsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.tar.zst
gsoc2013-empathy-81073b4ead57026a71a8e192947123aef9f9a3cf.zip
empathy_message_equal: always use the timestamp+body (#621797)
There is no reason to only use this new heuristic only in the TPL case. Furthermore, we're about to make TPL mandatory so it's good to have it more tested.
-rw-r--r--libempathy/empathy-message.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index a46d7d9a7..85d5cbc58 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -666,12 +666,8 @@ empathy_message_equal (EmpathyMessage *message1, EmpathyMessage *message2)
priv1 = GET_PRIV (message1);
priv2 = GET_PRIV (message2);
-#ifdef ENABLE_TPL
if (priv1->timestamp == priv2->timestamp &&
!tp_strdiff (priv1->body, priv2->body)) {
-#else
- if (priv1->id == priv2->id && !tp_strdiff (priv1->body, priv2->body)) {
-#endif /* ENABLE_TPL */
return TRUE;
}