Media: Fix missing replace button (#6587)
This commit is contained in:
parent
a7c029ad8c
commit
48293f4214
@ -55,7 +55,7 @@ export function hasMessageMedia(message: MediaContainer) {
|
|||||||
|
|
||||||
export function canEditMedia(message: MediaContainer) {
|
export function canEditMedia(message: MediaContainer) {
|
||||||
const {
|
const {
|
||||||
video, ...otherMedia
|
photo, video, audio, document, text, webPage, ...otherMedia
|
||||||
} = message.content;
|
} = message.content;
|
||||||
|
|
||||||
return !video?.isRound && !Object.keys(otherMedia).length;
|
return !video?.isRound && !Object.keys(otherMedia).length;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user