mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-11 11:43:17 +08:00
fix(feishu): ensure /m sends a new card while other actions keep in-place updates
This commit is contained in:
parent
7a6e84cb89
commit
caa9e5eec2
2 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -655,7 +655,7 @@ export class FeishuHarnessBridge {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MENU_COMMAND.test(commandText)) {
|
if (MENU_COMMAND.test(commandText)) {
|
||||||
await this.#sendMenuCard(key, event.message.chat_id);
|
await this.#sendMenuCard(key, event.message.chat_id, { newCard: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (commandText === '/new') {
|
if (commandText === '/new') {
|
||||||
|
|
@ -1508,7 +1508,7 @@ export class FeishuHarnessBridge {
|
||||||
return messageId;
|
return messageId;
|
||||||
}
|
}
|
||||||
|
|
||||||
async #sendMenuCard(key, chatId) {
|
async #sendMenuCard(key, chatId, { newCard = false } = {}) {
|
||||||
let workspaces = [];
|
let workspaces = [];
|
||||||
let currentWorkspace = null;
|
let currentWorkspace = null;
|
||||||
try {
|
try {
|
||||||
|
|
@ -1566,7 +1566,7 @@ export class FeishuHarnessBridge {
|
||||||
currentSession: currentSessionId ? { id: currentSessionId, title: currentSessionTitle } : null,
|
currentSession: currentSessionId ? { id: currentSessionId, title: currentSessionTitle } : null,
|
||||||
sessions, archiveVisible,
|
sessions, archiveVisible,
|
||||||
}),
|
}),
|
||||||
{ key, update: true },
|
{ key, update: !newCard },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue