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:
parent
581e804e37
commit
4c89d17e68
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue