mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-14 03:15:11 +00:00
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
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:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user