From 3da20486c10883014ade7e6a2152b0ab840ec47e Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 29 Dec 2009 18:44:48 +0000 Subject: [PATCH] Disable code of recent commit because some clients can't handle it (EJAB-1058) SVN Revision: 2840 --- src/ejabberd_c2s.erl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 5149b069b..2346eb015 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -724,13 +724,13 @@ wait_for_bind({xmlstreamelement, El}, StateData) -> Resource -> Resource end, - ServerB = StateData#state.server, - RosterVersioningFeature = - ejabberd_hooks:run_fold(roster_get_versioning_feature, - ServerB, [], [ServerB]), - send_element(StateData, - exmpp_stream:features([exmpp_server_session:feature() - | RosterVersioningFeature])), + %%ServerB = StateData#state.server, + %%RosterVersioningFeature = + %% ejabberd_hooks:run_fold(roster_get_versioning_feature, + %% ServerB, [], [ServerB]), + %%send_element(StateData, + %% exmpp_stream:features([exmpp_server_session:feature() + %% | RosterVersioningFeature])), JID = exmpp_jid:make(StateData#state.user, StateData#state.server, R), Res = exmpp_server_binding:bind(El, JID), send_element(StateData, Res), @@ -773,7 +773,7 @@ wait_for_session({xmlstreamelement, El}, StateData) -> ?INFO_MSG("(~w) Opened session for ~s", [StateData#state.socket, exmpp_jid:to_binary(JID)]), - send_element(StateData, exmpp_stream:features([])), + %%send_element(StateData, exmpp_stream:features([])), SID = {now(), self()}, Conn = get_conn_type(StateData), Info = [{ip, StateData#state.ip}, {conn, Conn},