mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-02 16:37:52 +01:00
Do not call mod_caps:clear_caps as it breaks PubSub/PEP (EJAB-854)
SVN Revision: 1911
This commit is contained in:
parent
6ea29663a3
commit
dcb05c4061
@ -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 Badlop <badlop@process-one.net>
|
2009-02-21 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* src/mod_muc/mod_muc_room.erl: Owner of a password protected room
|
* src/mod_muc/mod_muc_room.erl: Owner of a password protected room
|
||||||
|
@ -1113,7 +1113,9 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
|
|||||||
%% Note contact availability
|
%% Note contact availability
|
||||||
case xml:get_attr_s("type", Attrs) of
|
case xml:get_attr_s("type", Attrs) of
|
||||||
"unavailable" ->
|
"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),
|
Caps = mod_caps:read_caps(Els),
|
||||||
mod_caps:note_caps(StateData#state.server, From, Caps)
|
mod_caps:note_caps(StateData#state.server, From, Caps)
|
||||||
|
Loading…
Reference in New Issue
Block a user