about summary refs log tree commit diff stats
path: root/src/server_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server_events.c')
-rw-r--r--src/server_events.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server_events.c b/src/server_events.c
index 8400de8d..938572a0 100644
--- a/src/server_events.c
+++ b/src/server_events.c
@@ -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);
     }
 }