0
0
Fork 0
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:
Jason Volk 2020-05-12 17:09:14 -07:00
parent ea420994eb
commit 8308fe0e6b

View file

@ -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);
} }
} }