diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-02 01:04:03 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-02 20:04:41 +0800 |
commit | 52376d81c4c2d29ac6845070efbc0785d7989d28 (patch) | |
tree | 80c3ea5e2225e1fcd64fbbf9392754366812804f /libempathy | |
parent | 8d1543fd36e67823e390477548dfa43f86afa2e2 (diff) | |
download | gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.tar gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.tar.gz gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.tar.bz2 gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.tar.lz gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.tar.xz gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.tar.zst gsoc2013-empathy-52376d81c4c2d29ac6845070efbc0785d7989d28.zip |
tp-chat: set the flags of the message
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index f1c455e04..e53caefec 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -231,7 +231,8 @@ tp_chat_build_message (EmpathyTpChat *chat, guint type, guint timestamp, guint from_handle, - const gchar *message_body) + const gchar *message_body, + TpChannelTextMessageFlags flags) { EmpathyTpChatPriv *priv; EmpathyMessage *message; @@ -244,6 +245,7 @@ tp_chat_build_message (EmpathyTpChat *chat, empathy_message_set_timestamp (message, timestamp); empathy_message_set_id (message, id); empathy_message_set_incoming (message, incoming); + empathy_message_set_flags (message, flags); g_queue_push_tail (priv->messages_queue, message); @@ -301,7 +303,8 @@ tp_chat_received_cb (TpChannel *channel, message_type, timestamp, from_handle, - message_body); + message_body, + message_flags); } static void @@ -326,7 +329,8 @@ tp_chat_sent_cb (TpChannel *channel, message_type, timestamp, 0, - message_body); + message_body, + 0); } static void @@ -465,7 +469,8 @@ tp_chat_list_pending_messages_cb (TpChannel *channel, message_type, timestamp, from_handle, - message_body); + message_body, + message_flags); } if (empty_non_text_content_ids != NULL) { |