[Telepathy-commits] [telepathy-gabble/master] GabbleMUCChannel: set the SCROLLBACK flag on discussion history
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Nov 3 08:08:56 PST 2008
---
src/muc-channel.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/muc-channel.c b/src/muc-channel.c
index 54f7a7b..177a445 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -2218,6 +2218,7 @@ _gabble_muc_channel_receive (GabbleMucChannel *chan,
{
gboolean is_error;
GabbleMucChannelPrivate *priv;
+ TpChannelTextMessageFlags flags = 0;
g_assert (GABBLE_IS_MUC_CHANNEL (chan));
@@ -2244,10 +2245,12 @@ _gabble_muc_channel_receive (GabbleMucChannel *chan,
/* Receive messages from other contacts and our own if they're delayed, and
* set the timestamp for non-delayed messages */
if (timestamp == 0)
- timestamp = time (NULL);
+ timestamp = time (NULL);
+ else
+ flags = TP_CHANNEL_TEXT_MESSAGE_FLAG_SCROLLBACK;
- tp_text_mixin_receive (G_OBJECT (chan), msg_type, sender,
- timestamp, text);
+ tp_text_mixin_receive_with_flags (G_OBJECT (chan), msg_type, sender,
+ timestamp, text, flags);
}
/**
--
1.5.6.5
More information about the Telepathy-commits
mailing list