Restore chat thumbnails and gallery OCR captions

This commit is contained in:
pewdiepie-archdaemon
2026-06-29 01:19:50 +00:00
parent 4d90eb3d44
commit 3b6d771be9
3 changed files with 5 additions and 20 deletions
+2 -1
View File
@@ -81,7 +81,7 @@ function _formatSize(bytes) {
// Build the `.attach-cards` element for a message's attachment list. Shared by
// addMessage and updateMessageAttachments so a live (optimistic) user bubble
// can be re-rendered with real upload ids once the upload resolves.
function buildAttachCards(attachments) {
export function buildAttachCards(attachments) {
const attachWrap = document.createElement('div');
attachWrap.className = 'attach-cards';
for (const att of attachments) {
@@ -2672,6 +2672,7 @@ const chatRenderer = {
createMsgFooter,
displayMetrics,
addMessage,
buildAttachCards,
updateMessageAttachments,
};