aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-tp-chat.c3
1 files changed, 3 insertions, 0 deletions
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) {