Description: fix issue causing no notification to be shown for the first message in a conversation Author: Robert Hollencamp --- a/src/pidgin-libnotify.c +++ b/src/pidgin-libnotify.c @@ -593,6 +593,8 @@ tr_name = g_strdup(sender); } } + } else { + tr_name = g_strdup(sender); } } @@ -637,20 +639,18 @@ return; } - if (conv == NULL) { - return; - } - if (!should_notify_unavailable (account)) return; - PidginConversation * pconv = PIDGIN_CONVERSATION(conv); - if (pconv != NULL) { - if (pconv->entry != NULL && pconv->imhtml != NULL) { - if (GTK_WIDGET_HAS_FOCUS(pconv->entry) || GTK_WIDGET_HAS_FOCUS(pconv->imhtml)) { - purple_debug_warning(PLUGIN_ID, "Pidgin conversation's widgets are in focus"); - return; - }}} + if (conv != NULL) { + PidginConversation * pconv = PIDGIN_CONVERSATION(conv); + if (pconv != NULL) { + if (pconv->entry != NULL && pconv->imhtml != NULL) { + if (GTK_WIDGET_HAS_FOCUS(pconv->entry) || GTK_WIDGET_HAS_FOCUS(pconv->imhtml)) { + purple_debug_warning(PLUGIN_ID, "Pidgin conversation's widgets are in focus"); + return; + }}} + } notify_msg_sent (account, sender, message, conv); }