From 3c39befa5e565bbc3cc13a0f060a8d7a18f735f1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Tue, 20 Aug 2013 23:54:41 +0100 Subject: Fixed window refresh on presence --- src/ui/core.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ui/core.c b/src/ui/core.c index 37d0d35d..48e9ff03 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -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 -- cgit 1.4.1-2-gfad0