Skip to content

Commit 2c6add0

Browse files
committed
only send delete request if some messages were deleted
1 parent f3cbee3 commit 2c6add0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/message.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,9 @@ pub async fn delete_msgs_ex(
18221822
bail!("Can delete only from same chat.");
18231823
}
18241824

1825-
if let Some(chat_id) = modified_chat_ids.iter().next() {
1825+
if let Some(chat_id) = modified_chat_ids.iter().next()
1826+
&& !info_msg_rfc724.is_empty()
1827+
{
18261828
send_delete_request(context, &info_msg_rfc724, chat_id).await?;
18271829
}
18281830

0 commit comments

Comments
 (0)