25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Don't check for faked carbons

This commit is contained in:
Evgeniy Khramtsov 2016-11-24 20:16:07 +03:00
parent 0f11b1be36
commit d554827ebc

View File

@ -145,10 +145,6 @@ recv_carbons(Config) ->
ok; ok;
({_, #message{sub_els = [#carbons_private{}]}}) -> ({_, #message{sub_els = [#carbons_private{}]}}) ->
ok; ok;
({_, #message{sub_els = [#carbons_sent{}]}}) ->
ok;
({_, #message{sub_els = [#carbons_received{}]}}) ->
ok;
({_, #message{type = T}}) when T /= normal, T /= chat -> ({_, #message{type = T}}) when T /= normal, T /= chat ->
ok; ok;
({Dir, #message{type = T, body = Body} = M}) ({Dir, #message{type = T, body = Body} = M})
@ -197,6 +193,4 @@ message_iterator(_Config) ->
Body <- [[], xmpp:mk_text(<<"body">>)], Body <- [[], xmpp:mk_text(<<"body">>)],
Els <- [[], Els <- [[],
[#hint{type = 'no-copy'}], [#hint{type = 'no-copy'}],
[#carbons_private{}], [#carbons_private{}]]].
[#carbons_sent{forwarded = #forwarded{}}],
[#carbons_received{forwarded = #forwarded{}}]]].