aboutsummaryrefslogtreecommitdiff
path: root/src/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.c')
-rw-r--r--src/event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index 486d724..0f71697 100644
--- a/src/event.c
+++ b/src/event.c
@@ -521,6 +521,9 @@ event_invitation(MESSENGER_Application *app,
521 521
522 ui_chat_add_message(handle->chat, app, message); 522 ui_chat_add_message(handle->chat, app, message);
523 523
524 if (app->settings.accept_all_invitations)
525 gtk_button_clicked(message->accept_button);
526
524 enqueue_chat_entry_update(handle); 527 enqueue_chat_entry_update(handle);
525} 528}
526 529
@@ -534,9 +537,19 @@ event_receive_message(MESSENGER_Application *app,
534 if (!handle) 537 if (!handle)
535 return; 538 return;
536 539
540 const gboolean whispering = (
541 GNUNET_CHAT_KIND_WHISPER == GNUNET_CHAT_message_get_kind(msg)
542 );
543
544 if ((whispering) && (!(app->settings.show_whispering)))
545 return;
546
537 const int sent = GNUNET_CHAT_message_is_sent(msg); 547 const int sent = GNUNET_CHAT_message_is_sent(msg);
538 const gchar *text = GNUNET_CHAT_message_get_text(msg); 548 const gchar *text = GNUNET_CHAT_message_get_text(msg);
539 549
550 if (whispering)
551 text = _("whispers...");
552
540 if ((text) && (!(*text))) 553 if ((text) && (!(*text)))
541 goto skip_message; 554 goto skip_message;
542 555