Update to work with 17.03+

This commit is contained in:
Badlop 2017-02-23 21:29:55 +01:00
parent fc901d9dea
commit e93af70b57
1 changed files with 2 additions and 2 deletions

View File

@ -145,8 +145,8 @@ ip_matches(ClientIp, AllowedValues) ->
AllowedValues).
post_request(Pkt) ->
mod_mam:user_send_packet(Pkt, #{jid => Pkt#message.from}, Pkt#message.from, Pkt#message.to),
case ejabberd_router:route(Pkt#message.from, Pkt#message.to, Pkt) of
mod_mam:user_send_packet({Pkt, #{jid => Pkt#message.from}}),
case ejabberd_router:route(Pkt) of
ok -> {200, [], <<"Ok">>};
_ -> {500, [], <<"Error">>}
end.