aboutsummaryrefslogtreecommitdiff
path: root/src/ui/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/chat.c')
-rw-r--r--src/ui/chat.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/chat.c b/src/ui/chat.c
index 4fe4735..455e3c4 100644
--- a/src/ui/chat.c
+++ b/src/ui/chat.c
@@ -877,6 +877,21 @@ ui_chat_add_message(UI_CHAT_Handle *handle,
877 877
878 g_hash_table_insert(app->ui.bindings, row, message); 878 g_hash_table_insert(app->ui.bindings, row, message);
879 879
880 GList *list = handle->messages;
881
882 while (list)
883 {
884 UI_MESSAGE_Handle *msg_handle = (UI_MESSAGE_Handle*) list->data;
885
886 if (UI_MESSAGE_SENT == msg_handle->type)
887 {
888 ui_message_refresh(msg_handle);
889 break;
890 }
891
892 list = list->next;
893 }
894
880 handle->messages = g_list_prepend(handle->messages, message); 895 handle->messages = g_list_prepend(handle->messages, message);
881 896
882 gtk_list_box_invalidate_sort(handle->messages_listbox); 897 gtk_list_box_invalidate_sort(handle->messages_listbox);