fix: carry matrix dm allowlist state

This commit is contained in:
Peter Steinberger
2026-05-01 13:46:52 +01:00
parent 2c152ffa7f
commit 7e8d95b413
2 changed files with 5 additions and 1 deletions

View File

@@ -741,6 +741,7 @@ export function createMatrixRoomMessageHandler(params: MatrixMonitorHandlerParam
isRoom,
});
const {
effectiveAllowFrom,
effectiveGroupAllowFrom,
effectiveRoomUsers,
groupAllowConfigured,
@@ -1149,6 +1150,7 @@ export function createMatrixRoomMessageHandler(params: MatrixMonitorHandlerParam
triggerSnapshot,
threadRootId: _threadRootId,
thread,
effectiveAllowFrom,
effectiveGroupAllowFrom,
effectiveRoomUsers,
};
@@ -1203,6 +1205,7 @@ export function createMatrixRoomMessageHandler(params: MatrixMonitorHandlerParam
triggerSnapshot,
threadRootId: _threadRootId,
thread,
effectiveAllowFrom,
effectiveGroupAllowFrom,
effectiveRoomUsers,
} = resolvedIngressResult;
@@ -1832,7 +1835,7 @@ export function createMatrixRoomMessageHandler(params: MatrixMonitorHandlerParam
const pinnedMainDmOwner = isDirectMessage
? resolvePinnedMainDmOwnerFromAllowlist({
dmScope: cfg.session?.dmScope,
allowFrom: liveDmAllowFrom,
allowFrom: effectiveAllowFrom,
normalizeEntry: normalizeMatrixUserId,
})
: null;

View File

@@ -231,6 +231,7 @@ export type CoreConfig = {
};
session?: {
store?: string;
dmScope?: NonNullable<OpenClawConfig["session"]>["dmScope"];
};
messages?: {
ackReaction?: string;