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:
parent
26154de7c4
commit
e94a21aa7d
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||||
|
|
11
ircd/m.cc
11
ircd/m.cc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue