mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
ircd:Ⓜ️ Use util::boolean for m::redacted.
This commit is contained in:
parent
fe8f9ee611
commit
a3163a5ae7
2 changed files with 2 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue