mirror of
https://github.com/matrix-construct/construct
synced 2024-11-04 21:08:57 +01:00
modules/m_receipt: Minor structured bindings.
This commit is contained in:
parent
ea420994eb
commit
8308fe0e6b
1 changed files with 3 additions and 3 deletions
|
@ -63,11 +63,11 @@ handle_edu_m_receipt(const m::event &event,
|
||||||
at<"content"_>(event)
|
at<"content"_>(event)
|
||||||
};
|
};
|
||||||
|
|
||||||
for(const auto &member : content)
|
for(const auto &[_room_id, content] : content)
|
||||||
{
|
{
|
||||||
const m::room::id &room_id
|
const m::room::id &room_id
|
||||||
{
|
{
|
||||||
unquote(member.first)
|
_room_id
|
||||||
};
|
};
|
||||||
|
|
||||||
if(m::room::server_acl::enable_write && !m::room::server_acl::check(room_id, origin))
|
if(m::room::server_acl::enable_write && !m::room::server_acl::check(room_id, origin))
|
||||||
|
@ -82,7 +82,7 @@ handle_edu_m_receipt(const m::event &event,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_m_receipt(event, room_id, member.second);
|
handle_m_receipt(event, room_id, content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue