From 7e07a39f8833b6c27a083ae68f891db184b17bd7 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 26 Feb 2014 14:44:35 +0100 Subject: [PATCH 01/11] cm-message: use tp_cm_message_get_sender() internally --- telepathy-glib/cm-message.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/telepathy-glib/cm-message.c b/telepathy-glib/cm-message.c index 33ec4e4..9a28bb5 100644 --- a/telepathy-glib/cm-message.c +++ b/telepathy-glib/cm-message.c @@ -265,7 +265,6 @@ _tp_cm_message_new_from_parts (TpBaseConnection *conn, { TpMessage *self; guint i; - const GHashTable *header; TpHandle sender; g_return_val_if_fail (parts != NULL, NULL); @@ -281,8 +280,7 @@ _tp_cm_message_new_from_parts (TpBaseConnection *conn, (GBoxedCopyFunc) tp_g_value_slice_dup); } - header = tp_message_peek (self, 0); - sender = tp_asv_get_uint32 (header, "message-sender", NULL); + sender = tp_cm_message_get_sender (self); if (sender != 0) tp_cm_message_set_sender (self, sender); -- 1.8.5.3