diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-19 15:52:54 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-04-21 10:36:04 +0800 |
commit | 70b302881d10a0b0ac52ef656729a1793a11d28c (patch) | |
tree | f2d308f89607c6b9c8e56f3aa1171d6e06ec05fc /libempathy | |
parent | 2eef25ba493b49772b0698ee6b8bb0215f1ae450 (diff) | |
download | gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.tar gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.tar.gz gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.tar.bz2 gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.tar.lz gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.tar.xz gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.tar.zst gsoc2013-empathy-70b302881d10a0b0ac52ef656729a1793a11d28c.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); |