ui: media attachments before text (#23467)

* ui: media attachments before text

* fix prettier formatting
This commit is contained in:
Saba Fallah
2026-05-25 08:50:41 +02:00
committed by GitHub
parent 9627d0f540
commit b96487645c
3 changed files with 9 additions and 11 deletions
+1 -2
View File
@@ -14,9 +14,8 @@ export function capImageDataURLSize(
): Promise<string> {
return new Promise((resolve, reject) => {
try {
const mimeMatch = base64UrlImage.match(BASE64_IMAGE_URI_REGEX);
if (!mimeMatch) {
return reject(new Error('Invalid data URL format.'));
}