diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2008-11-11 18:09:04 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2008-11-18 16:53:01 +0000 |
commit | e9c6a9b08f86f6d2b9dc6c7bc95a15318128fbb8 (patch) | |
tree | 8f60d84b9d80492be018d813cee1f54f39b472db | |
parent | 64aea936af37f694f4bd3646702cc711ec861cf2 (diff) | |
download | telepathy-glib-e9c6a9b08f86f6d2b9dc6c7bc95a15318128fbb8.tar.gz |
message_mixin_sent: Add message-sent => now if it's missing
-rw-r--r-- | telepathy-glib/message-mixin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-glib/message-mixin.c b/telepathy-glib/message-mixin.c index e03b615cf..4a4d2f9ba 100644 --- a/telepathy-glib/message-mixin.c +++ b/telepathy-glib/message-mixin.c @@ -1715,6 +1715,10 @@ tp_message_mixin_sent (GObject *object, { TpChannelTextMessageType message_type; gchar *string; + GHashTable *header = g_ptr_array_index (message->parts, 0); + + if (tp_asv_get_uint64 (header, "message-sent", NULL) == 0) + tp_message_set_uint64 (message, 0, "message-sent", time (NULL)); /* emit Sent and MessageSent */ |