mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 09:26:30 +03:00
Fix warning of unused result
This commit is contained in:
@@ -2003,7 +2003,7 @@ pub async fn send_msg(context: &Context, chat_id: ChatId, msg: &mut Message) ->
|
||||
// encryption_mode
|
||||
if let None = msg.encryption_modus(&context).await? {
|
||||
if let Some(encryption_mode) = chat_id.encryption_modus(&context).await? {
|
||||
msg.set_encryption_modus(&context, encryption_mode);
|
||||
msg.set_encryption_modus(&context, encryption_mode).await?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user