diff --git a/src/web/templates/index.html b/src/web/templates/index.html
index 369f138..64e9076 100644
--- a/src/web/templates/index.html
+++ b/src/web/templates/index.html
@@ -1047,9 +1047,9 @@
{{ getChatName(selectedChat)
-
+
+ v-html="linkifyText(getAlbumCaption(msg) || msg.text)">
@@ -2538,6 +2538,16 @@
Create Share Token
}
}
+ // For album messages, find the caption from any message in the group
+ const getAlbumCaption = (msg) => {
+ const groupedId = getGroupedId(msg)
+ if (!groupedId) return null
+ const album = getAlbumForMessage(msg)
+ if (!album) return null
+ const captionMsg = album.find(m => m.text && m.text.trim() !== '')
+ return captionMsg ? captionMsg.text : null
+ }
+
const isGroup = computed(() => {
return selectedChat.value && (selectedChat.value.type === 'group' || selectedChat.value.type === 'channel')
})
@@ -3648,6 +3658,7 @@ Create Share Token
isFirstInAlbum,
isHiddenAlbumMessage,
getAlbumGridClass,
+ getAlbumCaption,
getChatName,
getInitials,
formatDate,