mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-10 15:38:51 -04:00
fix: Edit box formatting was removing triple tick boxes (#5737)
This commit is contained in:
+2
-1
@@ -4787,7 +4787,8 @@ import { wireArrowUpRecall, getUserMessagesFromChatHistory } from './composerArr
|
|||||||
if (msgIndex < 0) return;
|
if (msgIndex < 0) return;
|
||||||
|
|
||||||
const bodyEl = userMsgElement.querySelector('.body');
|
const bodyEl = userMsgElement.querySelector('.body');
|
||||||
const currentText = bodyEl ? bodyEl.textContent.trim().replace(/\s*\[\d+ attachment\(s\)\]$/, '') : '';
|
let currentText = (userMsgElement.dataset.raw || (bodyEl ? bodyEl.textContent : '') || '').trim();
|
||||||
|
currentText = currentText.replace(/\s*\[\d+ attachment\(s\)\]$/, '');
|
||||||
|
|
||||||
// Replace body with an editable textarea
|
// Replace body with an editable textarea
|
||||||
const editor = document.createElement('textarea');
|
const editor = document.createElement('textarea');
|
||||||
|
|||||||
Reference in New Issue
Block a user