25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Use correct db backend for remove_mam_for_user_with_peer

This commit is contained in:
Paweł Chmielowski 2018-04-20 14:06:23 +02:00
parent 3bfa683586
commit 3fc0eb4f5b

View File

@ -281,7 +281,7 @@ remove_mam_for_user_with_peer(User, Server, Peer) ->
LServer = jid:nameprep(Server),
try jid:decode(Peer) of
Jid ->
Mod = gen_mod:db_mod(LUser, ?MODULE),
Mod = gen_mod:db_mod(LServer, ?MODULE),
case Mod:remove_from_archive(LUser, LServer, Jid) of
ok ->
{ok, <<"MAM archive removed">>};