fix bug: editing text kept previous media in message

This commit is contained in:
Akulij 2025-04-28 00:06:22 +03:00
parent a905325a52
commit 03e42c9108

View File

@ -242,6 +242,7 @@ async fn edit_msg_handler(
match msg.media_kind {
MediaKind::Text(text) => {
db.drop_media(&literal).await.unwrap();
if is_caption_set {
return Ok(());
};