mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 09:46:20 +00:00
Implemented regular chat notify triggers
This commit is contained in:
@@ -274,18 +274,8 @@ chatwin_incoming_msg(ProfChatWin *chatwin, const char *const resource, const cha
|
||||
beep();
|
||||
}
|
||||
|
||||
if (!prefs_get_boolean(PREF_NOTIFY_MESSAGE)) {
|
||||
free(display_name);
|
||||
return;
|
||||
}
|
||||
|
||||
gboolean notify = FALSE;
|
||||
|
||||
gboolean is_current = wins_is_current(window);
|
||||
if (!is_current || (is_current && prefs_get_boolean(PREF_NOTIFY_MESSAGE_CURRENT)) ) {
|
||||
notify = TRUE;
|
||||
}
|
||||
|
||||
gboolean notify = prefs_get_notify_chat(is_current, message);
|
||||
if (!notify) {
|
||||
free(display_name);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user