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:
parent
9fd45059eb
commit
0b47bba6cc
@ -279,7 +279,10 @@ _ui_contact_typing(const char * const barejid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (prefs_get_boolean(PREF_NOTIFY_TYPING)) {
|
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)) ) {
|
if ( !is_current || (is_current && prefs_get_boolean(PREF_NOTIFY_TYPING_CURRENT)) ) {
|
||||||
PContact contact = roster_get_contact(barejid);
|
PContact contact = roster_get_contact(barejid);
|
||||||
char const *display_usr = NULL;
|
char const *display_usr = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user