diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/event.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c index 0f71697..17a3a39 100644 --- a/src/event.c +++ b/src/event.c | |||
@@ -485,6 +485,11 @@ event_invitation(MESSENGER_Application *app, | |||
485 | if (!invitation) | 485 | if (!invitation) |
486 | return; | 486 | return; |
487 | 487 | ||
488 | const int sent = GNUNET_CHAT_message_is_sent(msg); | ||
489 | |||
490 | if ((GNUNET_YES != sent) && (app->settings.send_read_receipts)) | ||
491 | GNUNET_CHAT_context_send_read_receipt(context, msg); | ||
492 | |||
488 | UI_MESSAGE_Handle *message = ui_message_new(app, UI_MESSAGE_STATUS); | 493 | UI_MESSAGE_Handle *message = ui_message_new(app, UI_MESSAGE_STATUS); |
489 | ui_message_update(message, app, msg); | 494 | ui_message_update(message, app, msg); |
490 | 495 | ||
@@ -553,6 +558,9 @@ event_receive_message(MESSENGER_Application *app, | |||
553 | if ((text) && (!(*text))) | 558 | if ((text) && (!(*text))) |
554 | goto skip_message; | 559 | goto skip_message; |
555 | 560 | ||
561 | if ((GNUNET_YES != sent) && (app->settings.send_read_receipts)) | ||
562 | GNUNET_CHAT_context_send_read_receipt(context, msg); | ||
563 | |||
556 | const UI_MESSAGE_Type type = ( | 564 | const UI_MESSAGE_Type type = ( |
557 | GNUNET_YES == sent? UI_MESSAGE_SENT : UI_MESSAGE_DEFAULT | 565 | GNUNET_YES == sent? UI_MESSAGE_SENT : UI_MESSAGE_DEFAULT |
558 | ); | 566 | ); |