diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-19 15:52:54 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-19 15:52:54 +0800 |
commit | 52d369333daea849d6119f4aee80007d9c659652 (patch) | |
tree | d6d8dd96d562c2512621d24f799bd2cd59c60559 /libempathy | |
parent | c97c920a473ac08460f3869db70a6bb829c9317d (diff) | |
download | gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.tar gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.tar.gz gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.tar.bz2 gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.tar.lz gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.tar.xz gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.tar.zst gsoc2013-empathy-52d369333daea849d6119f4aee80007d9c659652.zip |
empathy_message_new_from_tp_message: assign priv as soon as the message is created
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c index 1740e1de5..ad3a32c1f 100644 --- a/libempathy/empathy-message.c +++ b/libempathy/empathy-message.c @@ -638,12 +638,13 @@ empathy_message_new_from_tp_message (TpMessage *tp_msg, "incoming", incoming, NULL); + priv = GET_PRIV (message); + /* FIXME: this is pretty low level, ideally we shouldn't have to use the * ID directly but we don't use TpTextChannel's ack API everywhere yet. */ id = tp_asv_get_uint32 (tp_message_peek (tp_msg, 0), "pending-message-id", NULL); - priv = GET_PRIV (message); priv->id = id; g_free (body); |