0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd:Ⓜ️:acquire: Improve hint selection complex for state fetch.

This commit is contained in:
Jason Volk 2020-12-04 23:52:12 -08:00
parent bba89fd3e5
commit 7eaad92e3c

View file

@ -283,14 +283,18 @@ ircd::m::acquire::fetch_state(const m::event::id &event_id,
if(ctx::interruption_requested())
return false;
const auto hostpart
{
event_id.host()
};
const auto hint
{
hostpart? hostpart: remote
event_id.host() && !my_host(event_id.host())?
event_id.host():
remote && !my_host(remote)?
remote:
opts.room.room_id.host() && !my_host(opts.room.room_id.host())?
opts.room.room_id.host():
string_view{}
};
const bool submitted