mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 13:56:30 +03:00
add dc_msg_get_info_type() to allow drawing a shield in the uis
This commit is contained in:
@@ -589,6 +589,10 @@ impl Message {
|
||||
|| cmd != SystemMessage::Unknown && cmd != SystemMessage::AutocryptSetupMessage
|
||||
}
|
||||
|
||||
pub fn get_info_type(&self) -> SystemMessage {
|
||||
self.param.get_cmd()
|
||||
}
|
||||
|
||||
pub fn is_system_message(&self) -> bool {
|
||||
let cmd = self.param.get_cmd();
|
||||
cmd != SystemMessage::Unknown
|
||||
|
||||
Reference in New Issue
Block a user