[Telepathy-commits] [telepathy-glib/master] MessageMixin: turn "scrollback" and "rescued" headers into MessageFlags
Will Thompson
will.thompson at collabora.co.uk
Thu Dec 18 10:41:53 PST 2008
---
telepathy-glib/message-mixin.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/telepathy-glib/message-mixin.c b/telepathy-glib/message-mixin.c
index 1ab5c38..d9d4bb1 100644
--- a/telepathy-glib/message-mixin.c
+++ b/telepathy-glib/message-mixin.c
@@ -869,6 +869,12 @@ parts_to_text (const GPtrArray *parts,
GString *buffer = g_string_new ("");
TpChannelTextMessageFlags flags = 0;
+ if (tp_asv_get_boolean (header, "scrollback", NULL))
+ flags |= TP_CHANNEL_TEXT_MESSAGE_FLAG_SCROLLBACK;
+
+ if (tp_asv_get_boolean (header, "rescued", NULL))
+ flags |= TP_CHANNEL_TEXT_MESSAGE_FLAG_RESCUED;
+
/* If the message is on an extended interface or only contains headers,
* definitely set the "your client is too old" flag. */
if (parts->len <= 1 || g_hash_table_lookup (header, "interface") != NULL)
--
1.5.6.5
More information about the Telepathy-commits
mailing list