feat: image content
This commit is contained in:
@@ -502,10 +502,8 @@ function extractTextContent(message: Message): string {
|
||||
if (typeof content === "string") {
|
||||
return content;
|
||||
}
|
||||
return content
|
||||
.filter((block): block is TextContent => block.type === "text")
|
||||
.map((block) => block.text)
|
||||
.join(" ");
|
||||
const textBlocks = content.filter((block): block is TextContent => block.type === "text") as TextContent[];
|
||||
return textBlocks.map((block) => block.text).join(" ");
|
||||
}
|
||||
|
||||
function getLastActivityTime(entries: FileEntry[]): number | undefined {
|
||||
|
||||
Reference in New Issue
Block a user