mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-31 02:02:22 +01:00
fix(email): retain inline image selections before input reset
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ import spinnerModule from './spinner.js';
|
||||
import presetsModule from './presets.js?v=20260908personaname1';
|
||||
import fileHandlerModule from './fileHandler.js?v=20260909mobileattachmentedit1';
|
||||
import searchModule from './search.js';
|
||||
import documentModule from './document.js?v=20261028emailpickerfiles1';
|
||||
import documentModule from './document.js?v=20261028emailpickerfiles2';
|
||||
import * as emailInbox from './emailInbox.js?v=20260914aireply4';
|
||||
import codeRunnerModule from './codeRunner.js?v=20260831richtexttools91';
|
||||
import slashCommands, { initSlashCommands, isCommand, handleSlashCommand, handleSetupInput, handleSetupWizard, typewriterInto } from './slashCommands.js?v=20260921chatgptusage1';
|
||||
|
||||
@@ -1889,7 +1889,7 @@ function _activateEntityAnchor(e, forcedAnchor = null) {
|
||||
} catch {}
|
||||
});
|
||||
} else if (kind === 'document') {
|
||||
import('./document.js?v=20261028emailpickerfiles1').then(mod => {
|
||||
import('./document.js?v=20261028emailpickerfiles2').then(mod => {
|
||||
const open = mod.loadDocument
|
||||
|| mod.openDocument
|
||||
|| (mod.default && (mod.default.loadDocument || mod.default.openDocument));
|
||||
@@ -3656,7 +3656,7 @@ export function addMessage(role, content, modelName, metadata) {
|
||||
|
||||
b.querySelectorAll('[data-doc-edit-ref]').forEach(button => {
|
||||
button.addEventListener('click', () => {
|
||||
import('./document.js?v=20261028emailpickerfiles1').then(mod => {
|
||||
import('./document.js?v=20261028emailpickerfiles2').then(mod => {
|
||||
const restore = mod.restoreSelectionReference
|
||||
|| mod.default?.restoreSelectionReference;
|
||||
return restore?.(button.dataset.docEditRef || '', {
|
||||
|
||||
@@ -7,7 +7,7 @@ import Storage from './storage.js';
|
||||
import themeModule from './theme.js?v=20260911organsrain1';
|
||||
import markdownModule from './markdown.js';
|
||||
import sessionModule from './sessions.js';
|
||||
import documentModule from './document.js?v=20261028emailpickerfiles1';
|
||||
import documentModule from './document.js?v=20261028emailpickerfiles2';
|
||||
|
||||
// Tool approvals are control-plane submits for the current chat. chat.js
|
||||
// deliberately leaves the composer untouched, then programmatically clicks the
|
||||
|
||||
@@ -5928,7 +5928,7 @@ import { attachColorPicker } from './colorPicker.js?v=20260910eyedropper1';
|
||||
}
|
||||
|
||||
async function _handleMarkdownImageUpload(e) {
|
||||
const files = e.target.files;
|
||||
const files = Array.from(e.target.files || []);
|
||||
e.target.value = '';
|
||||
await _uploadMarkdownImages(files);
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ function _wireAttachmentHandlers(reader, folder) {
|
||||
ownerModal.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
const docMod = await import('../document.js?v=20261028emailpickerfiles1');
|
||||
const docMod = await import('../document.js?v=20261028emailpickerfiles2');
|
||||
const load = (docMod && docMod.loadDocument) || (docMod && docMod.default && docMod.default.loadDocument);
|
||||
if (typeof load === 'function') {
|
||||
await load(json.doc_id);
|
||||
|
||||
@@ -16,7 +16,7 @@ import modelsModule from './models.js';
|
||||
import chatRenderer from './chatRenderer.js?v=20260914metricssummary1';
|
||||
import spinnerModule from './spinner.js';
|
||||
import themeModule from './theme.js?v=20260911organsrain1';
|
||||
import documentModule from './document.js?v=20261028emailpickerfiles1';
|
||||
import documentModule from './document.js?v=20261028emailpickerfiles2';
|
||||
import workspaceModule from './workspace.js';
|
||||
import settingsModule from './settings.js?v=20260912writingstyle3';
|
||||
import cookbookModule from './cookbook.js';
|
||||
|
||||
Reference in New Issue
Block a user