[empathy] tp-chat: set the flags of the message



commit 52376d81c4c2d29ac6845070efbc0785d7989d28
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Dec 1 17:04:03 2009 +0000

    tp-chat: set the flags of the message

 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 f1c455e..e53caef 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]