mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️:room::auth: Fix incorrectly resolved index() call. (#18)
This commit is contained in:
parent
52657ca410
commit
19c2d7da8e
1 changed files with 10 additions and 2 deletions
|
@ -725,8 +725,16 @@ const
|
|||
const m::event::prev prev{e};
|
||||
for(size_t i(0); i < prev.auth_events_count() && i < 4; ++i)
|
||||
{
|
||||
const auto &auth_event_id(prev.auth_event(i));
|
||||
const auto &auth_event_idx(index(auth_event_id, std::nothrow));
|
||||
const m::event::id &auth_event_id
|
||||
{
|
||||
prev.auth_event(i)
|
||||
};
|
||||
|
||||
const auto &auth_event_idx
|
||||
{
|
||||
m::index(auth_event_id, std::nothrow)
|
||||
};
|
||||
|
||||
if(!auth_event_idx)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue