mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Do not call mod_caps:clear_caps as it breaks PubSub/PEP (EJAB-854)
SVN Revision: 1913
This commit is contained in:
parent
4956259124
commit
7a17baccac
@ -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-21 Pablo Polvorin <pablo.polvorin@process-one.net>
|
2009-02-21 Pablo Polvorin <pablo.polvorin@process-one.net>
|
||||||
|
|
||||||
* src/mod_roster.erl: Bugfix in remove_user/2: values already
|
* src/mod_roster.erl: Bugfix in remove_user/2: values already
|
||||||
|
@ -1062,7 +1062,9 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
|
|||||||
Els = Packet#xmlel.children,
|
Els = Packet#xmlel.children,
|
||||||
case exmpp_presence:get_type(Packet) of
|
case exmpp_presence:get_type(Packet) of
|
||||||
'unavailable' ->
|
'unavailable' ->
|
||||||
mod_caps:clear_caps(From);
|
%mod_caps:clear_caps(From);
|
||||||
|
% caps clear disabled cause it breaks things
|
||||||
|
ok;
|
||||||
_ ->
|
_ ->
|
||||||
ServerString = binary_to_list(StateData#state.server),
|
ServerString = binary_to_list(StateData#state.server),
|
||||||
Caps = mod_caps:read_caps(Els),
|
Caps = mod_caps:read_caps(Els),
|
||||||
|
Loading…
Reference in New Issue
Block a user