Media: Fix missing replace button (#6587)

This commit is contained in:
zubiden 2026-01-13 11:30:28 +01:00 committed by Alexander Zinchuk
parent a7c029ad8c
commit 48293f4214

View File

@ -55,7 +55,7 @@ export function hasMessageMedia(message: MediaContainer) {
export function canEditMedia(message: MediaContainer) {
const {
video, ...otherMedia
photo, video, audio, document, text, webPage, ...otherMedia
} = message.content;
return !video?.isRound && !Object.keys(otherMedia).length;