From 28be56aad9f8f798ccca905d7e17beb1cfd6b1b5 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Fri, 27 Nov 2020 00:18:55 -0500 Subject: [PATCH] Fix bug causing group PM's to increment window notifications by 2 instead of 1 --- src/groupchats.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/groupchats.c b/src/groupchats.c index d4ee383..b1a6f6c 100644 --- a/src/groupchats.c +++ b/src/groupchats.c @@ -696,12 +696,12 @@ static void groupchat_onGroupPrivateMessage(ToxWindow *self, Tox *m, uint32_t gr line_info_add(self, timefrmt, nick, NULL, IN_PRVT_MSG, 0, MAGENTA, "%s", msg); write_to_log(msg, nick, ctx->log, false); - sound_notify(self, generic_message, NT_WNDALERT_0, NULL); - if (self->active_box != -1) { - box_silent_notify2(self, NT_NOFOCUS, self->active_box, "%s %s", nick, msg); + box_notify2(self, generic_message, NT_WNDALERT_0 | NT_NOFOCUS | user_settings->bell_on_message, + self->active_box, "%s %s", nick, msg); } else { - box_silent_notify(self, NT_NOFOCUS, &self->active_box, self->name, "%s %s", nick, msg); + box_notify(self, generic_message, NT_WNDALERT_0 | NT_NOFOCUS | user_settings->bell_on_message, + &self->active_box, self->name, "%s %s", nick, msg); } }