Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/screen.c @ 1700:87dd0a8f1a9c
Remove the "new message" flag when a buffer is purged with /buffer purge
We do not remove it when a buffer is closed as it may still be useful.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 07 Feb 2010 17:34:00 +0100 |
parents | bd60a275dbc2 |
children | 68981c37ed3f |
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c Sun Feb 07 17:11:52 2010 +0100 +++ b/mcabber/mcabber/screen.c Sun Feb 07 17:34:00 2010 +0100 @@ -2589,6 +2589,7 @@ p_closebuf = g_new(guint, 1); *p_closebuf = closebuf; buffer_purge((gpointer)cjid, win_entry, p_closebuf); + roster_msg_setflag(cjid, FALSE, FALSE); g_free(p_closebuf); if (closebuf && !hold_chatmode) { scr_set_chatmode(FALSE); @@ -2600,11 +2601,14 @@ hbuf_free(&win_entry->bd->hbuf); // Currently it can only be the status buffer statushbuf = NULL; + roster_msg_setflag(SPECIAL_BUFFER_STATUS_ID, TRUE, FALSE); win_entry->bd->cleared = FALSE; win_entry->bd->top = NULL; } + update_roster = TRUE; + // Refresh the window scr_UpdateBuddyWindow();