0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-09 12:08:36 +02:00

modules/client/publicrooms: Use better hook for creating the public rooms room.

This commit is contained in:
Jason Volk 2018-03-02 02:05:10 -08:00
parent 581e804e37
commit 4c89d17e68

View file

@ -87,7 +87,6 @@ get_method
static void
_create_public_room(const m::event &)
{
if(!exists(public_room_id))
m::create(public_room_id, m::me.user_id);
}
@ -100,9 +99,7 @@ _create_public_hook
{
{ "_site", "vm notify" },
{ "room_id", "!ircd:zemos.net" },
{ "sender", "@ircd:zemos.net" },
{ "type", "m.room.member" },
{ "membership", "join" },
{ "type", "m.room.create" },
},
_create_public_room