0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 16:04:15 +01:00

ircd:Ⓜ️ Use util::boolean for m::redacted.

This commit is contained in:
Jason Volk 2019-09-17 18:29:43 -07:00
parent fe8f9ee611
commit a3163a5ae7
2 changed files with 2 additions and 13 deletions

View file

@ -17,12 +17,8 @@ namespace ircd::m
}
struct ircd::m::redacted
:boolean
{
bool ret;
public:
operator const bool &() const;
redacted(const event::idx &);
redacted(const event::id &);
explicit redacted(const event &);
@ -43,10 +39,3 @@ ircd::m::redacted::redacted(const event::id &event_id)
index(event_id, std::nothrow)
}
{}
inline ircd::m::redacted::operator
const bool &()
const
{
return ret;
}

View file

@ -1653,7 +1653,7 @@ ircd::m::vm::sequence::get(const eval &eval)
//
ircd::m::redacted::redacted(const event::idx &event_idx)
:ret
:boolean
{
event_idx?
event::refs(event_idx).has(dbs::ref::M_ROOM_REDACTION):