diff options
-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 */ |