fix bug: editing text kept previous media in message
This commit is contained in:
parent
a905325a52
commit
03e42c9108
@ -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(());
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user