fix soft-failed redaction regression (ff8bbd4cfa
)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b3271e0d65
commit
d32534164c
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ pub(super) async fn upgrade_outlier_to_timeline_pdu(
|
||||||
| (false, _) => true,
|
| (false, _) => true,
|
||||||
| (true, None) => false,
|
| (true, None) => false,
|
||||||
| (true, Some(redact_id)) =>
|
| (true, Some(redact_id)) =>
|
||||||
self.services
|
!self
|
||||||
|
.services
|
||||||
.state_accessor
|
.state_accessor
|
||||||
.user_can_redact(&redact_id, &incoming_pdu.sender, &incoming_pdu.room_id, true)
|
.user_can_redact(&redact_id, &incoming_pdu.sender, &incoming_pdu.room_id, true)
|
||||||
.await?,
|
.await?,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue