Update to work with 17.03+
This commit is contained in:
parent
fc901d9dea
commit
e93af70b57
|
@ -145,8 +145,8 @@ ip_matches(ClientIp, AllowedValues) ->
|
||||||
AllowedValues).
|
AllowedValues).
|
||||||
|
|
||||||
post_request(Pkt) ->
|
post_request(Pkt) ->
|
||||||
mod_mam:user_send_packet(Pkt, #{jid => Pkt#message.from}, Pkt#message.from, Pkt#message.to),
|
mod_mam:user_send_packet({Pkt, #{jid => Pkt#message.from}}),
|
||||||
case ejabberd_router:route(Pkt#message.from, Pkt#message.to, Pkt) of
|
case ejabberd_router:route(Pkt) of
|
||||||
ok -> {200, [], <<"Ok">>};
|
ok -> {200, [], <<"Ok">>};
|
||||||
_ -> {500, [], <<"Error">>}
|
_ -> {500, [], <<"Error">>}
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue