mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
parent
75c125e8aa
commit
f2fb177d7d
1 changed files with 14 additions and 0 deletions
|
@ -92,6 +92,20 @@ get__publicrooms(client &client,
|
|||
request.get<bool>("include_all_networks", false)
|
||||
};
|
||||
|
||||
if(server && !my_host(server)) try
|
||||
{
|
||||
m::rooms::fetch_update(server, since, limit);
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::error
|
||||
{
|
||||
m::log, "Failed to fetch public rooms from '%s' :%s",
|
||||
server,
|
||||
e.what()
|
||||
};
|
||||
}
|
||||
|
||||
resource::response::chunked response
|
||||
{
|
||||
client, http::OK
|
||||
|
|
Loading…
Reference in a new issue