mirror of
https://github.com/matrix-construct/construct
synced 2024-06-18 01:48:27 +02:00
ircd:Ⓜ️:rooms: Filter rooms summaries for my server to those with aliases from server.
This commit is contained in:
parent
4cece76e1c
commit
28dbaf459d
|
@ -138,6 +138,10 @@ ircd::m::rooms::for_each(const opts &opts,
|
|||
if(!join_rule(room, opts.join_rule))
|
||||
return;
|
||||
|
||||
if(opts.server && opts.request_node_id && my_host(opts.server))
|
||||
if(!room::aliases(room_id).has_server(opts.server))
|
||||
return;
|
||||
|
||||
if(opts.room_alias)
|
||||
{
|
||||
const auto match_alias_prefix{[&opts](const auto &alias)
|
||||
|
|
Loading…
Reference in a new issue