1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Fixed window refresh on presence

This commit is contained in:
James Booth 2013-08-20 23:54:41 +01:00
parent 770b572d58
commit 3c39befa5e

View File

@ -472,8 +472,11 @@ ui_contact_online(const char * const barejid, const char * const resource,
jid_destroy(jid);
g_string_free(display_str, TRUE);
if (wins_is_current(window))
if (wins_is_current(console)) {
wins_refresh_current();
} else if ((window != NULL) && (wins_is_current(window))) {
wins_refresh_current();
}
}
void
@ -511,8 +514,11 @@ ui_contact_offline(const char * const from, const char * const show,
jid_destroy(jidp);
g_string_free(display_str, TRUE);
if (wins_is_current(window))
if (wins_is_current(console)) {
wins_refresh_current();
} else if ((window != NULL) && (wins_is_current(window))) {
wins_refresh_current();
}
}
void