mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 00:03:45 +02:00
modules/m_room_join_rules: Fix room summary trigger.
This commit is contained in:
parent
f9e5ece672
commit
fe0127d0ec
|
@ -38,16 +38,9 @@ _changed_rules(const m::event &event,
|
|||
at<"room_id"_>(event)
|
||||
};
|
||||
|
||||
static mods::import<m::event::id::buf (const m::room::id &, const json::object &)> set
|
||||
{
|
||||
"m_rooms_summary", "ircd::m::rooms::summary::set"
|
||||
};
|
||||
|
||||
// This call sends a message to the !public room to list this room in the
|
||||
// public rooms list. We set an empty summary for this room because we
|
||||
// already have its state on this server; saving a summary object in the
|
||||
// event sent to !public is only for rooms whose state is not synced.
|
||||
set(room_id, json::object{});
|
||||
// public rooms list.
|
||||
m::rooms::summary::set(room_id);
|
||||
}
|
||||
|
||||
m::hookfn<m::vm::eval &>
|
||||
|
|
Loading…
Reference in a new issue