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:
parent
db74d89f23
commit
4368f1af7a
1 changed files with 3 additions and 2 deletions
|
@ -40,7 +40,7 @@ ircd::m::affect_user_room_hookfn
|
||||||
{
|
{
|
||||||
affect_user_room,
|
affect_user_room,
|
||||||
{
|
{
|
||||||
{ "_site", "vm.post" },
|
{ "_site", "vm.effect" },
|
||||||
{ "type", "m.room.member" },
|
{ "type", "m.room.member" },
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -69,12 +69,13 @@ try
|
||||||
if(!exists(subject))
|
if(!exists(subject))
|
||||||
create(subject);
|
create(subject);
|
||||||
|
|
||||||
//TODO: ABA / TXN
|
|
||||||
m::user::room user_room
|
m::user::room user_room
|
||||||
{
|
{
|
||||||
subject
|
subject
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//TODO: ABA / TXN
|
||||||
|
assert(exists(user_room));
|
||||||
const auto &prev_idx
|
const auto &prev_idx
|
||||||
{
|
{
|
||||||
user_room.get(std::nothrow, "ircd.member", room_id)
|
user_room.get(std::nothrow, "ircd.member", room_id)
|
||||||
|
|
Loading…
Reference in a new issue