mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 10:21:24 +00:00
fix: skip dm history limit for non-dm sessions
This commit is contained in:
@@ -475,6 +475,7 @@ export function getDmHistoryLimitFromSessionKey(
|
||||
// The userId may contain colons (e.g., email addresses), so join remaining parts
|
||||
const kind = providerParts[1]?.toLowerCase();
|
||||
const userId = providerParts.slice(2).join(":");
|
||||
if (kind !== "dm") return undefined;
|
||||
|
||||
// Helper to get limit with per-DM override support
|
||||
const getLimit = (
|
||||
|
||||
Reference in New Issue
Block a user