0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01: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,8 +87,7 @@ get_method
static void
_create_public_room(const m::event &)
{
if(!exists(public_room_id))
m::create(public_room_id, m::me.user_id);
m::create(public_room_id, m::me.user_id);
}
/// Create the public rooms room at the appropriate time on startup.
@ -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