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

@@ -600,6 +600,11 @@ impl Message {
|| cmd != SystemMessage::Unknown && cmd != SystemMessage::AutocryptSetupMessage
}
pub fn is_system_message(&self) -> bool {
let cmd = self.param.get_cmd();
cmd != SystemMessage::Unknown
}
/// Whether the message is still being created.
///
/// Messages with attachments might be created before the