Do not send read receipts for system messages

This commit is contained in:
Alexander Krotov
2020-07-27 01:37:33 +03:00
parent dafe900d22
commit dc065ccbe3
3 changed files with 17 additions and 6 deletions

View File

@@ -113,12 +113,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
)
.await?;
let command = msg.param.get_cmd();
if command != SystemMessage::AutocryptSetupMessage
&& command != SystemMessage::SecurejoinMessage
&& context.get_config_bool(Config::MdnsEnabled).await
{
if !msg.is_system_message() && context.get_config_bool(Config::MdnsEnabled).await {
req_mdn = true;
}
}