diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-06-03 20:28:48 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-06-03 20:28:48 +0200 |
commit | 4d5eab66625b9693933bdea8abbf5d25799f1fde (patch) | |
tree | 6b69ab3d3480c9040e74a184994f8a1c12214b57 /src/mod_client_state.erl | |
parent | Ignore <delay/> when checking for chat states (diff) |
Unwrap carbon copies when checking for chat states
Detect standalone chat states that were carbon-copied.
Diffstat (limited to '')
-rw-r--r-- | src/mod_client_state.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_client_state.erl b/src/mod_client_state.erl index 0d3a289a..6b79aec0 100644 --- a/src/mod_client_state.erl +++ b/src/mod_client_state.erl @@ -165,7 +165,7 @@ filter_presence(Acc, _Host, _Stanza) -> Acc. filter_chat_states({C2SState, _OutStanzas} = Acc, Host, #xmlel{name = <<"message">>} = Stanza) -> - case jlib:is_standalone_chat_state(Stanza) of + case jlib:is_standalone_chat_state(jlib:unwrap_carbon(Stanza)) of true -> ?DEBUG("Got standalone chat state notification", []), queue_add(chatstate, Stanza, Host, C2SState); |