summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-10 15:26:13 (GMT)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-10 15:26:13 (GMT)
commite0d3380a6ea04e2b7ca9ab8720f982541ca31f3c (patch)
treef52094854a457b21820581758fafd9a21c1a2c5f
parentfaa06bd2e13bce069ff87531d2f9ca4650d65f73 (diff)
downloadtelepathy-gabble-e0d3380a6ea04e2b7ca9ab8720f982541ca31f3c.tar.gz
telepathy-gabble-e0d3380a6ea04e2b7ca9ab8720f982541ca31f3c.tar.xz
Set message timestamps as int64, not uint64
-rw-r--r--src/im-channel.c6
-rw-r--r--src/muc-channel.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/im-channel.c b/src/im-channel.c
index e5578a1..891dcca 100644
--- a/src/im-channel.c
+++ b/src/im-channel.c
@@ -385,7 +385,7 @@ _gabble_im_channel_receive (GabbleIMChannel *chan,
tp_message_set_uint32 (msg, 0, "message-type", type);
if (timestamp != 0)
- tp_message_set_uint64 (msg, 0, "message-sent", timestamp);
+ tp_message_set_int64 (msg, 0, "message-sent", timestamp);
/* Body */
tp_message_set_string (msg, 1, "content-type", "text/plain");
@@ -394,7 +394,7 @@ _gabble_im_channel_receive (GabbleIMChannel *chan,
if (send_error == GABBLE_TEXT_CHANNEL_SEND_NO_ERROR)
{
tp_cm_message_set_sender (msg, sender);
- tp_message_set_uint64 (msg, 0, "message-received", time (NULL));
+ tp_message_set_int64 (msg, 0, "message-received", time (NULL));
if (id != NULL)
tp_message_set_string (msg, 0, "message-token", id);
@@ -408,7 +408,7 @@ _gabble_im_channel_receive (GabbleIMChannel *chan,
tp_message_set_uint32 (delivery_report, 0, "message-type",
TP_CHANNEL_TEXT_MESSAGE_TYPE_DELIVERY_REPORT);
tp_cm_message_set_sender (delivery_report, sender);
- tp_message_set_uint64 (delivery_report, 0, "message-received",
+ tp_message_set_int64 (delivery_report, 0, "message-received",
time (NULL));
tmp = gabble_generate_id ();
diff --git a/src/muc-channel.c b/src/muc-channel.c
index f1ce588..85bd67e 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -2732,7 +2732,7 @@ _gabble_muc_channel_receive (GabbleMucChannel *chan,
tp_message_set_uint32 (message, 0, "message-type", msg_type);
if (timestamp != 0)
- tp_message_set_uint64 (message, 0, "message-sent", timestamp);
+ tp_message_set_int64 (message, 0, "message-sent", timestamp);
/* Body */
tp_message_set_string (message, 1, "content-type", "text/plain");