mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Use correct db backend for remove_mam_for_user_with_peer
This commit is contained in:
parent
3bfa683586
commit
3fc0eb4f5b
@ -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">>};
|
||||
|
Loading…
Reference in New Issue
Block a user