diff options
Diffstat (limited to 'src/ui/message.c')
-rw-r--r-- | src/ui/message.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/message.c b/src/ui/message.c index 9c93502..5cbafcc 100644 --- a/src/ui/message.c +++ b/src/ui/message.c | |||
@@ -248,6 +248,8 @@ ui_message_new(MESSENGER_Application *app, | |||
248 | 248 | ||
249 | handle->type = type; | 249 | handle->type = type; |
250 | 250 | ||
251 | handle->timestamp = GNUNET_TIME_absolute_get_zero_(); | ||
252 | |||
251 | const char *ui_builder_file; | 253 | const char *ui_builder_file; |
252 | 254 | ||
253 | switch (handle->type) | 255 | switch (handle->type) |
@@ -402,7 +404,11 @@ ui_message_update(UI_MESSAGE_Handle *handle, | |||
402 | struct GNUNET_CHAT_File *file = NULL; | 404 | struct GNUNET_CHAT_File *file = NULL; |
403 | 405 | ||
404 | if (msg) | 406 | if (msg) |
407 | { | ||
405 | file = GNUNET_CHAT_message_get_file(msg); | 408 | file = GNUNET_CHAT_message_get_file(msg); |
409 | |||
410 | handle->timestamp = GNUNET_CHAT_message_get_timestamp(msg); | ||
411 | } | ||
406 | else | 412 | else |
407 | file = g_hash_table_lookup(app->ui.bindings, handle->message_box); | 413 | file = g_hash_table_lookup(app->ui.bindings, handle->message_box); |
408 | 414 | ||