about summary refs log tree commit diff stats
path: root/src/xmpp/connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/connection.c')
-rw-r--r--src/xmpp/connection.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c
index 075321f7..8566a8d6 100644
--- a/src/xmpp/connection.c
+++ b/src/xmpp/connection.c
@@ -347,16 +347,6 @@ connection_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
     xmpp_stanza_t *error_stanza = xmpp_stanza_get_child_by_name(stanza, STANZA_NAME_ERROR);
     xmpp_stanza_t *text_stanza = xmpp_stanza_get_child_by_name(error_stanza, STANZA_NAME_TEXT);
 
-    // handle specific errors by ID
-    char *id = xmpp_stanza_get_id(stanza);
-    if (id != NULL) {
-
-        // ignore if server doesn't support bookmarks
-        if (strcmp("bookmark_init_request", id) == 0) {
-            return 1;
-        }
-    }
-
     if (error_stanza == NULL) {
         log_debug("error message without <error/> received");
     } else {
@@ -499,7 +489,6 @@ _connection_handler(xmpp_conn_t * const conn,
 
         chat_sessions_init();
 
-        xmpp_handler_add(conn, connection_error_handler, NULL, NULL, STANZA_TYPE_ERROR, ctx);
         roster_add_handlers();
         message_add_handlers();
         presence_add_handlers();