mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +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
|
static void
|
||||||
_create_public_room(const m::event &)
|
_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.
|
/// Create the public rooms room at the appropriate time on startup.
|
||||||
|
@ -100,9 +99,7 @@ _create_public_hook
|
||||||
{
|
{
|
||||||
{ "_site", "vm notify" },
|
{ "_site", "vm notify" },
|
||||||
{ "room_id", "!ircd:zemos.net" },
|
{ "room_id", "!ircd:zemos.net" },
|
||||||
{ "sender", "@ircd:zemos.net" },
|
{ "type", "m.room.create" },
|
||||||
{ "type", "m.room.member" },
|
|
||||||
{ "membership", "join" },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_create_public_room
|
_create_public_room
|
||||||
|
|
Loading…
Reference in a new issue