1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Check window exsists before doing incoming typing notifications

issue #397
This commit is contained in:
James Booth 2014-08-21 22:34:50 +01:00
parent 9fd45059eb
commit 0b47bba6cc

View File

@ -279,7 +279,10 @@ _ui_contact_typing(const char * const barejid)
}
if (prefs_get_boolean(PREF_NOTIFY_TYPING)) {
gboolean is_current = wins_is_current(window);
gboolean is_current = FALSE;
if (window != NULL) {
is_current = wins_is_current(window);
}
if ( !is_current || (is_current && prefs_get_boolean(PREF_NOTIFY_TYPING_CURRENT)) ) {
PContact contact = roster_get_contact(barejid);
char const *display_usr = NULL;