mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-27 09:02:15 +00:00
fix: honor nostr setup default account
This commit is contained in:
@@ -1310,7 +1310,7 @@ export async function promptParsedAllowFromForScopedChannel(params: {
|
||||
|
||||
export function createTopLevelChannelParsedAllowFromPrompt(params: {
|
||||
channel: string;
|
||||
defaultAccountId: string;
|
||||
defaultAccountId: string | ((cfg: OpenClawConfig) => string);
|
||||
enabled?: boolean;
|
||||
noteTitle?: string;
|
||||
noteLines?: string[];
|
||||
@@ -1325,7 +1325,10 @@ export function createTopLevelChannelParsedAllowFromPrompt(params: {
|
||||
...(params.enabled ? { enabled: true } : {}),
|
||||
});
|
||||
return createPromptParsedAllowFromForAccount({
|
||||
defaultAccountId: params.defaultAccountId,
|
||||
defaultAccountId:
|
||||
typeof params.defaultAccountId === "function"
|
||||
? params.defaultAccountId
|
||||
: () => params.defaultAccountId,
|
||||
...(params.noteTitle ? { noteTitle: params.noteTitle } : {}),
|
||||
...(params.noteLines ? { noteLines: params.noteLines } : {}),
|
||||
message: params.message,
|
||||
|
||||
Reference in New Issue
Block a user