Update chat_window.php

This commit is contained in:
lizandrogd
2026-01-21 13:14:23 -05:00
parent e2624e7e32
commit 874c884fe8
+2 -2
View File
@@ -619,8 +619,8 @@ if (empty($user_id)) {
}
let fullUrl = '';
if (isValidMediaUrl(msg.local_file)) {
fullUrl = `/api/version/media-url.php?local=${encodeURIComponent(msg.local_file)}`;
if (isValidMediaUrl(msg.media_url_external)) {
fullUrl = `/api/version/media-url.php?local=${encodeURIComponent(msg.media_url_external)}`;
} else if (isValidMediaUrl(msg.media_url_external)) {
if (msg.media_url_external.indexOf('api/get_media.php?id=') !== -1) {
const parts = msg.media_url_external.split('id=');