mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
modules/m_room_join_rules: Update join_rules hook to send w/ m::rooms iface.
This commit is contained in:
parent
133cb4825c
commit
ddc1849677
1 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,11 @@ _changed_rules(const m::event &event,
|
||||||
at<"room_id"_>(event)
|
at<"room_id"_>(event)
|
||||||
};
|
};
|
||||||
|
|
||||||
send(public_room, sender, "ircd.room", room_id, json::strung{event});
|
// 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.
|
||||||
|
m::rooms::summary_set(room_id, json::object{});
|
||||||
}
|
}
|
||||||
|
|
||||||
const m::hookfn<m::vm::eval &>
|
const m::hookfn<m::vm::eval &>
|
||||||
|
|
Loading…
Reference in a new issue