Show original error message

This commit is contained in:
James Booth
2014-01-26 22:50:22 +00:00
parent 50f1a5ecc0
commit 1a300ce7d3
5 changed files with 32 additions and 24 deletions

View File

@@ -53,12 +53,11 @@ handle_error_message(const char *from, const char *err_msg)
}
void
handle_recipient_not_found(const char *from)
handle_recipient_not_found(const char * const recipient, const char * const err_msg)
{
log_info("Removing chat session for %s", from);
ui_handle_recipient_not_found(from);
if (prefs_get_boolean(PREF_STATES) && chat_session_exists(from)) {
chat_session_set_recipient_supports(from, FALSE);
ui_handle_recipient_not_found(recipient, err_msg);
if (prefs_get_boolean(PREF_STATES) && chat_session_exists(recipient)) {
chat_session_set_recipient_supports(recipient, FALSE);
}
}