Fixed Gmail and Google Drive preview: items were being sent to the Microsoft Graph API instead of handled correctly.

This commit is contained in:
StyxX65 committed 2026-04-26 11:04:05 +02:00
1 parent d84e57239a
commit ce5a5f1cbb
2 files changed
+37 -3

No files matched your search

+2
View File
@@ -304,6 +304,7 @@ def _run_google_scan(options: dict):
})
try:
meta["_account"] = _display_name
meta["_source_type"] = "gmail"
result = _scan_bytes(data, meta.get("name", "msg.txt"))
except Exception as e:
broadcast("scan_error", {"file": meta.get("name", ""), "error": str(e)})
@@ -376,6 +377,7 @@ def _run_google_scan(options: dict):
})
try:
meta["_account"] = _display_name
meta["_source_type"] = "gdrive"
result = _scan_bytes(data, meta.get("name", "file"))
except Exception as e:
broadcast("scan_error", {"file": meta.get("name", ""), "error": str(e)})