mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
extensions: fix MSTeams OneDrive fallback mention handling (#22472)
This commit is contained in:
@@ -295,7 +295,7 @@ async function buildActivity(
|
||||
// Teams only accepts base64 data URLs for images
|
||||
const conversationType = conversationRef.conversation?.conversationType?.toLowerCase();
|
||||
const isPersonal = conversationType === "personal";
|
||||
const isImage = contentType?.startsWith("image/") ?? false;
|
||||
const isImage = media.kind === "image";
|
||||
|
||||
if (
|
||||
requiresFileConsent({
|
||||
@@ -347,7 +347,7 @@ async function buildActivity(
|
||||
return activity;
|
||||
}
|
||||
|
||||
if (!isPersonal && !isImage && tokenProvider) {
|
||||
if (!isPersonal && media.kind !== "image" && tokenProvider) {
|
||||
// Fallback: no SharePoint site configured, try OneDrive upload
|
||||
const uploaded = await uploadAndShareOneDrive({
|
||||
buffer: media.buffer,
|
||||
|
||||
Reference in New Issue
Block a user