mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd:Ⓜ️:event::apend: Skip the redacted query if event is room head.
This commit is contained in:
parent
e94a21aa7d
commit
5bf60df98b
1 changed files with 4 additions and 1 deletions
|
@ -140,7 +140,10 @@ ircd::m::event::append::append(json::stack::object &object,
|
|||
|
||||
const bool query_redacted
|
||||
{
|
||||
has_event_idx && opts.query_redacted && !is_state
|
||||
has_event_idx &&
|
||||
opts.query_redacted &&
|
||||
!is_state &&
|
||||
(!opts.room_depth || *opts.room_depth > json::get<"depth"_>(event))
|
||||
};
|
||||
|
||||
if(query_redacted && m::redacted(*opts.event_idx))
|
||||
|
|
Loading…
Reference in a new issue