diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 8e13039c..4bbddc72 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -824,12 +824,12 @@ _handle_error(xmpp_stanza_t* const stanza) if (!jid) { ui_handle_error(err_msg); - } else if (type && (strcmp(type, "cancel") == 0)) { - log_info("Recipient %s not found: %s", jid, err_msg); - Jid* jidp = jid_create(jid); - chat_session_remove(jidp->barejid); - jid_destroy(jidp); } else { + if (type && (strcmp(type, "cancel") == 0)) { + Jid* jidp = jid_create(jid); + chat_session_remove(jidp->barejid); + jid_destroy(jidp); + } ui_handle_recipient_error(jid, err_msg); }