mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Fixed "sender" log field
This commit is contained in:
parent
191cd2af3c
commit
a5813b798f
@ -215,6 +215,7 @@ receive_offline_packet(From, To, Packet) ->
|
||||
end,
|
||||
Badge = integer_to_list(Offline + 1),
|
||||
DeviceID = erlang:integer_to_list(ID, 16),
|
||||
STo = jlib:jid_to_string(To),
|
||||
Packet1 =
|
||||
{xmlelement, "message", [],
|
||||
[{xmlelement, "push", [{"xmlns", ?NS_P1_PUSH}],
|
||||
@ -227,7 +228,9 @@ receive_offline_packet(From, To, Packet) ->
|
||||
{xmlelement, "sound", [],
|
||||
[{xmlcdata, SSound}]},
|
||||
{xmlelement, "from", [],
|
||||
[{xmlcdata, SFrom}]}]}]},
|
||||
[{xmlcdata, SFrom}]},
|
||||
{xmlelement, "to", [],
|
||||
[{xmlcdata, STo}]}]}]},
|
||||
ejabberd_router:route(To, ServiceJID, Packet1)
|
||||
end
|
||||
end;
|
||||
|
@ -370,7 +370,7 @@ handle_message(From, To, Packet, State) ->
|
||||
"Device ID: ~s~n",
|
||||
[State#state.host, erlang:integer_to_list(ID, 16),
|
||||
Notification, Payload,
|
||||
jlib:jid_to_string(From),
|
||||
Sender,
|
||||
Receiver, DeviceID]),
|
||||
case ssl:send(State#state.socket, Notification) of
|
||||
ok ->
|
||||
|
Loading…
Reference in New Issue
Block a user