fix: Still send MDNs from bots by default

Fixup for 5ce44ade1. It is good that read receipts are sent by bots to see the bot received the
message. Thanks to @adbenitez for pointing this out.
This commit is contained in:
iequidoo
2024-08-09 12:39:35 -03:00
committed by iequidoo
parent 745b33f174
commit 7c6d6a4b12
4 changed files with 18 additions and 8 deletions

View File

@@ -1769,7 +1769,7 @@ pub async fn markseen_msgs(context: &Context, msg_ids: Vec<MsgId>) -> Result<()>
if curr_blocked == Blocked::Not
&& curr_param.get_bool(Param::WantsMdn).unwrap_or_default()
&& curr_param.get_cmd() == SystemMessage::Unknown
&& context.mdns_enabled().await?
&& context.should_send_mdns().await?
{
context
.sql