diff options
Diffstat (limited to 'src/event.c')
-rw-r--r-- | src/event.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/event.c b/src/event.c index 2280785..a99f13d 100644 --- a/src/event.c +++ b/src/event.c | |||
@@ -304,11 +304,13 @@ event_receive_message(UNUSED MESSENGER_Application *app, | |||
304 | if (!handle) | 304 | if (!handle) |
305 | return; | 305 | return; |
306 | 306 | ||
307 | struct GNUNET_CHAT_File *file = GNUNET_CHAT_message_get_file(msg); | ||
308 | |||
307 | const int sent = GNUNET_CHAT_message_is_sent(msg); | 309 | const int sent = GNUNET_CHAT_message_is_sent(msg); |
308 | 310 | ||
309 | UI_MESSAGE_Handle *message = ui_message_new( | 311 | UI_MESSAGE_Handle *message = ui_message_new( |
310 | GNUNET_YES == sent? UI_MESSAGE_SENT : UI_MESSAGE_DEFAULT, | 312 | GNUNET_YES == sent? UI_MESSAGE_SENT : UI_MESSAGE_DEFAULT, |
311 | UI_MESSAGE_CONTENT_TEXT | 313 | file? UI_MESSAGE_CONTENT_FILE : UI_MESSAGE_CONTENT_TEXT |
312 | ); | 314 | ); |
313 | 315 | ||
314 | const struct GNUNET_CHAT_Contact *contact = GNUNET_CHAT_message_get_sender( | 316 | const struct GNUNET_CHAT_Contact *contact = GNUNET_CHAT_message_get_sender( |