From fe9075a08d2ee01281397511752087e94ea3c3c2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 9 Jul 2010 12:35:36 +0200 Subject: Properly mark messages from TPL as backlog (#623914) If the message is build from a TplEntry it *is* a backlog one. --- libempathy/empathy-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c index 3d755c92b..a8d6af575 100644 --- a/libempathy/empathy-message.c +++ b/libempathy/empathy-message.c @@ -314,7 +314,7 @@ empathy_message_from_tpl_log_entry (TplEntry *logentry) tpl_entry_get_timestamp (logentry)); empathy_message_set_id (retval, tpl_entry_text_get_pending_msg_id (TPL_ENTRY_TEXT (logentry))); - empathy_message_set_is_backlog (retval, FALSE); + empathy_message_set_is_backlog (retval, TRUE); g_free (body); -- cgit v1.2.3 From 16074928eee79472c804687556c193f50409ce8c Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 9 Jul 2010 12:42:25 +0200 Subject: tp-chat: mark scrollback messages as backlog --- libempathy/empathy-tp-chat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index b77fbb216..90c31e4cc 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -284,6 +284,9 @@ tp_chat_build_message (EmpathyTpChat *chat, empathy_message_set_incoming (message, incoming); empathy_message_set_flags (message, flags); + if (flags & TP_CHANNEL_TEXT_MESSAGE_FLAG_SCROLLBACK) + empathy_message_set_is_backlog (message, TRUE); + g_queue_push_tail (priv->messages_queue, message); if (from_handle == 0) { -- cgit v1.2.3