aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/event.c b/src/event.c
index b10045f..c3e4ac6 100644
--- a/src/event.c
+++ b/src/event.c
@@ -149,12 +149,14 @@ event_update_chats(MESSENGER_Application *app,
149 struct GNUNET_CHAT_Context *context, 149 struct GNUNET_CHAT_Context *context,
150 const struct GNUNET_CHAT_Message *msg) 150 const struct GNUNET_CHAT_Message *msg)
151{ 151{
152 if (GNUNET_CHAT_context_get_user_pointer(context)) 152 UI_CHAT_ENTRY_Handle *handle = GNUNET_CHAT_context_get_user_pointer(context);
153 return;
154 153
155 contact_create_info(GNUNET_CHAT_message_get_sender(msg)); 154 if (!handle)
155 _add_new_chat_entry(app, context);
156 else
157 ui_chat_entry_update(handle, app, context);
156 158
157 _add_new_chat_entry(app, context); 159 contact_create_info(GNUNET_CHAT_message_get_sender(msg));
158} 160}
159 161
160static void 162static void