25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Do not call mod_caps:clear_caps as it breaks PubSub/PEP (EJAB-854)

SVN Revision: 1912
This commit is contained in:
Christophe Romain 2009-02-23 15:56:19 +00:00
parent b6208955f3
commit 04fde3620d
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-02-23 Christophe Romain <christophe.romain@process-one.net>
* src/ejabberd_c2s.erl: Do not call mod_caps:clear_caps, this previous
optimization is too agressive and breaks PubSub/PEP standard behavior
(EJAB-854)
2009-02-23 Alexey Shchepin <alexey@process-one.net>
* src/web/ejabberd_http.erl: Added a workaround for inet:peername

View File

@ -1125,7 +1125,9 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
%% Note contact availability
case xml:get_attr_s("type", Attrs) of
"unavailable" ->
mod_caps:clear_caps(From);
%mod_caps:clear_caps(From);
% caps clear disabled cause it breaks things
ok;
_ ->
Caps = mod_caps:read_caps(Els),
mod_caps:note_caps(StateData#state.server, From, Caps)