diff options
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r-- | libempathy/empathy-message.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c index d23048a20..24a43788c 100644 --- a/libempathy/empathy-message.c +++ b/libempathy/empathy-message.c @@ -509,12 +509,15 @@ empathy_message_get_unique_id (EmpathyMessage *message) gboolean empathy_message_equal (EmpathyMessage *message1, EmpathyMessage *message2) { - EmpathyMessagePriv *priv1 = GET_PRIV (message1); - EmpathyMessagePriv *priv2 = GET_PRIV (message2); + EmpathyMessagePriv *priv1; + EmpathyMessagePriv *priv2; g_return_val_if_fail (EMPATHY_IS_MESSAGE (message1), FALSE); g_return_val_if_fail (EMPATHY_IS_MESSAGE (message2), FALSE); + priv1 = GET_PRIV (message1); + priv2 = GET_PRIV (message2); + if (priv1->id == priv2->id && g_str_hash (priv1->body) == g_str_hash (priv2->body)) { return TRUE; } |