mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Don't return error for blocked MUC messages
If a message stanza is blocked as per XEP-0016 or XEP-0191, return an error only if the type of the blocked message is "normal" or "chat". This makes sure users won't be kicked from MUC rooms when blocking other participants. Closes #897.
This commit is contained in:
parent
3e1425b905
commit
64d96778b4
1 changed files with 2 additions and 0 deletions
|
@ -1636,6 +1636,8 @@ handle_info({route, From, To,
|
||||||
deny ->
|
deny ->
|
||||||
case xml:get_attr_s(<<"type">>, Attrs) of
|
case xml:get_attr_s(<<"type">>, Attrs) of
|
||||||
<<"error">> -> ok;
|
<<"error">> -> ok;
|
||||||
|
<<"groupchat">> -> ok;
|
||||||
|
<<"headline">> -> ok;
|
||||||
<<"result">> -> ok;
|
<<"result">> -> ok;
|
||||||
_ ->
|
_ ->
|
||||||
Err =
|
Err =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue