From 4368f1af7a2207392c806b2a49e0e5334c0df672 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 22 Sep 2019 22:24:56 -0700 Subject: [PATCH] modules/m_room_member: Move membership hook back to vm.effect for now. --- modules/m_room_member.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/m_room_member.cc b/modules/m_room_member.cc index 1205ceda9..91c3deb42 100644 --- a/modules/m_room_member.cc +++ b/modules/m_room_member.cc @@ -40,7 +40,7 @@ ircd::m::affect_user_room_hookfn { affect_user_room, { - { "_site", "vm.post" }, + { "_site", "vm.effect" }, { "type", "m.room.member" }, } }; @@ -69,12 +69,13 @@ try if(!exists(subject)) create(subject); - //TODO: ABA / TXN m::user::room user_room { subject }; + //TODO: ABA / TXN + assert(exists(user_room)); const auto &prev_idx { user_room.get(std::nothrow, "ircd.member", room_id)