Fix room notification reminders
This commit is contained in:
@@ -345,7 +345,7 @@ ProfWin* win_create_muc_config(const char *const title, DataForm *form);
|
||||
ProfWin* win_create_private(const char *const fulljid);
|
||||
void win_update_virtual(ProfWin *window);
|
||||
void win_free(ProfWin *window);
|
||||
gboolean win_notify(ProfWin *window);
|
||||
gboolean win_notify_remind(ProfWin *window);
|
||||
int win_unread(ProfWin *window);
|
||||
void win_resize(ProfWin *window);
|
||||
void win_hide_subwin(ProfWin *window);
|
||||
|
||||
@@ -1308,7 +1308,7 @@ win_has_active_subwin(ProfWin *window)
|
||||
}
|
||||
|
||||
gboolean
|
||||
win_notify(ProfWin *window)
|
||||
win_notify_remind(ProfWin *window)
|
||||
{
|
||||
switch (window->type) {
|
||||
case WIN_CHAT:
|
||||
@@ -1327,15 +1327,7 @@ win_notify(ProfWin *window)
|
||||
ProfMucWin *mucwin = (ProfMucWin*) window;
|
||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||
|
||||
if (prefs_get_room_notify(mucwin->roomjid) && mucwin->unread > 0) {
|
||||
return TRUE;
|
||||
} else if (prefs_get_room_notify_mention(mucwin->roomjid) && mucwin->unread_mentions) {
|
||||
return TRUE;
|
||||
} else if (prefs_get_room_notify_trigger(mucwin->roomjid) && mucwin->unread_triggers) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
return prefs_do_room_notify_mention(mucwin->roomjid, mucwin->unread, mucwin->unread_mentions, mucwin->unread_triggers);
|
||||
}
|
||||
case WIN_PRIVATE:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user