0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-25 21:38:18 +02:00

modules/client/sync/to_device: Use m::query(); minor cleanup.

This commit is contained in:
Jason Volk 2019-09-23 17:55:03 -07:00
parent 8ec205b4b5
commit a984c2a454

View file

@ -56,12 +56,13 @@ ircd::m::sync::to_device_polylog(data &data)
if(!apropos(data, event_idx))
break;
bool relevant(false);
m::get(std::nothrow, event_idx, "type", [&relevant]
(const string_view &type)
const bool relevant
{
relevant = type == "ircd.to_device";
});
m::query(event_idx, "type", [](const string_view &type)
{
return type == "ircd.to_device";
})
};
if(!relevant)
continue;