0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️:redacted: Add prefetch() to interface.

This commit is contained in:
Jason Volk 2019-09-17 18:40:11 -07:00
parent 26154de7c4
commit e94a21aa7d
2 changed files with 13 additions and 0 deletions

View file

@ -22,6 +22,8 @@ struct ircd::m::redacted
redacted(const event::idx &); redacted(const event::idx &);
redacted(const event::id &); redacted(const event::id &);
explicit redacted(const event &); explicit redacted(const event &);
static bool prefetch(const event::idx &);
}; };
inline inline

View file

@ -1662,6 +1662,17 @@ ircd::m::redacted::redacted(const event::idx &event_idx)
{ {
} }
bool
ircd::m::redacted::prefetch(const event::idx &event_idx)
{
const event::refs refs
{
event_idx
};
return refs.prefetch(dbs::ref::M_ROOM_REDACTION);
}
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// //
// m/visible.h // m/visible.h