mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Ignore hints when checking for chat states
Ignore XEP-0334 elements when checking whether a stanza is a stand-alone XEP-0085 chat state notification. This allows for CSI-filtering chat states with (e.g.) a no-store hint. Thanks to Thilo Molitor for reporting the issue.
This commit is contained in:
parent
66d701e788
commit
01c70868ef
@ -195,7 +195,7 @@ get_mucsub_event_type(_Packet) ->
|
||||
is_standalone_chat_state(Stanza) ->
|
||||
case unwrap_carbon(Stanza) of
|
||||
#message{body = [], subject = [], sub_els = Els} ->
|
||||
IgnoreNS = [?NS_CHATSTATES, ?NS_DELAY, ?NS_EVENT],
|
||||
IgnoreNS = [?NS_CHATSTATES, ?NS_DELAY, ?NS_EVENT, ?NS_HINTS],
|
||||
Stripped = [El || El <- Els,
|
||||
not lists:member(xmpp:get_ns(El), IgnoreNS)],
|
||||
Stripped == [];
|
||||
|
Loading…
Reference in New Issue
Block a user