Change message type of carbon copies from 'chart' to 'chat'

This commit is contained in:
Janusz Dziemidowicz 2013-04-09 23:21:06 +02:00
parent cbd3062365
commit 74808b25a1
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ send_copies(JID, Packet, Direction)->
build_forward_packet(JID, Packet, Sender, Dest, Direction, ?NS_CC_2) ->
#xmlel{name = <<"message">>,
attrs = [{<<"xmlns">>, <<"jabber:client">>},
{<<"type">>, <<"chart">>},
{<<"type">>, <<"chat">>},
{<<"from">>, jlib:jid_to_string(Sender)},
{<<"to">>, jlib:jid_to_string(Dest)}],
children = [
@ -209,7 +209,7 @@ build_forward_packet(JID, Packet, Sender, Dest, Direction, ?NS_CC_2) ->
build_forward_packet(JID, Packet, Sender, Dest, Direction, ?NS_CC_1) ->
#xmlel{name = <<"message">>,
attrs = [{<<"xmlns">>, <<"jabber:client">>},
{<<"type">>, <<"chart">>},
{<<"type">>, <<"chat">>},
{<<"from">>, jlib:jid_to_string(Sender)},
{<<"to">>, jlib:jid_to_string(Dest)}],
children = [