diff options
Diffstat (limited to 'src/ui/chat_entry.c')
-rw-r--r-- | src/ui/chat_entry.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/chat_entry.c b/src/ui/chat_entry.c index 7ba67d2..85684f0 100644 --- a/src/ui/chat_entry.c +++ b/src/ui/chat_entry.c | |||
@@ -36,6 +36,8 @@ ui_chat_entry_new(MESSENGER_Application *app) | |||
36 | 36 | ||
37 | memset(handle, 0, sizeof(*handle)); | 37 | memset(handle, 0, sizeof(*handle)); |
38 | 38 | ||
39 | handle->timestamp = GNUNET_TIME_absolute_get_zero_(); | ||
40 | |||
39 | handle->chat = ui_chat_new(app); | 41 | handle->chat = ui_chat_new(app); |
40 | handle->builder = gtk_builder_new_from_resource( | 42 | handle->builder = gtk_builder_new_from_resource( |
41 | application_get_resource_path(app, "ui/chat_entry.ui") | 43 | application_get_resource_path(app, "ui/chat_entry.ui") |
@@ -114,6 +116,8 @@ ui_chat_entry_update(UI_CHAT_ENTRY_Handle *handle, | |||
114 | (UI_MESSAGE_Handle*) handle->chat->messages->data | 116 | (UI_MESSAGE_Handle*) handle->chat->messages->data |
115 | ); | 117 | ); |
116 | 118 | ||
119 | handle->timestamp = message->timestamp; | ||
120 | |||
117 | const gchar *text = gtk_label_get_text(message->text_label); | 121 | const gchar *text = gtk_label_get_text(message->text_label); |
118 | const gchar *time = gtk_label_get_text(message->timestamp_label); | 122 | const gchar *time = gtk_label_get_text(message->timestamp_label); |
119 | 123 | ||
@@ -143,6 +147,8 @@ ui_chat_entry_update(UI_CHAT_ENTRY_Handle *handle, | |||
143 | GTK_WIDGET(message->read_receipt_image) | 147 | GTK_WIDGET(message->read_receipt_image) |
144 | ) : FALSE | 148 | ) : FALSE |
145 | ); | 149 | ); |
150 | |||
151 | gtk_list_box_invalidate_sort(app->ui.messenger.chats_listbox); | ||
146 | } | 152 | } |
147 | 153 | ||
148 | void | 154 | void |