Pass window to functions so we dont have to call twice

This commit is contained in:
Michael Vetter
2020-07-09 16:11:06 +02:00
parent 11d849aa7f
commit 7b49fbdf45
5 changed files with 17 additions and 18 deletions

View File

@@ -282,7 +282,7 @@ chatwin_incoming_msg(ProfChatWin* chatwin, ProfMessage* message, gboolean win_cr
// not currently viewing chat window with sender
} else {
status_bar_new(num, WIN_CHAT, chatwin->barejid);
cons_show_incoming_message(display_name, num, chatwin->unread);
cons_show_incoming_message(display_name, num, chatwin->unread, window);
if (prefs_get_boolean(PREF_FLASH)) {
flash();