# HG changeset patch # User Mikael Berthe # Date 1265560440 -3600 # Node ID 87dd0a8f1a9cf869fe1666d7c3f3c21417744420 # Parent 527c965b45c581f613f7dbe22ce7e046e3c5711d 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. diff -r 527c965b45c5 -r 87dd0a8f1a9c mcabber/mcabber/screen.c --- 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();