mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01:00
modules/client/sync/to_device: Use m::query(); minor cleanup.
This commit is contained in:
parent
8ec205b4b5
commit
a984c2a454
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue