Fix Policy Notification Protection only inviting joined users (#1114)
Docker Hub - Develop / docker-latest (push) Failing after 26s
GHCR - Development Branches / ghcr-publish (push) Failing after 24s
Tests / Build & Lint (push) Failing after 2m31s
Tests / Unit tests (push) Successful in 3m3s
Tests / Integration tests (push) Failing after 15s
Tests / Application Service Integration tests (push) Failing after 14s

This commit is contained in:
Catalan Lover
2026-05-04 12:50:27 +02:00
committed by GitHub
parent f3e29fb3be
commit 3c021e1f01
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"draupnir": patch
---
Fix Policy Notification Room invites only being issued to users with join
membership.
@@ -58,7 +58,10 @@ export class NotificationRoomCreator<
const revision = membershipRevisionIssuer.ok.currentRevision;
return Ok(
[...revision.members()]
.filter((member) => member.membership === "join")
.filter(
(member) =>
member.membership === "join" || member.membership === "invite"
)
.map((member) => member.userID)
.filter((userID) => userID !== draupnirUserID)
);