]> granicus.if.org Git - ejabberd/commitdiff
Don't check for faked carbons
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 24 Nov 2016 17:16:07 +0000 (20:16 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Thu, 24 Nov 2016 17:16:07 +0000 (20:16 +0300)
test/carbons_tests.erl

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