0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-12 13:01:07 +01:00

modules/m_room_member: Move membership hook back to vm.effect for now.

This commit is contained in:
Jason Volk 2019-09-22 22:24:56 -07:00
parent db74d89f23
commit 4368f1af7a

View file

@ -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)