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:
parent
bba89fd3e5
commit
7eaad92e3c
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue