# HG changeset patch # User Stuart Carnie # Date 1414535132 25200 # Node ID 0c26b1638f8c0880e2294ae7759c516da8749dbb # Parent 05fa54404012e779e392a31eff5237c4e8527abc call archive API with username only diff -r 05fa54404012 -r 0c26b1638f8c mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Tue Oct 28 22:26:41 2014 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Tue Oct 28 15:25:32 2014 -0700 @@ -290,7 +290,8 @@ end module:hook("muc-room-destroyed", function(event) - archive:delete(jid_split(event.room.jid)); + local username = jid_split(event.room.jid); + archive:delete(username); end); -- TODO should we perhaps log presence as well?