mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
Replace some of context.sql.get_config() with context.get_config()
Pattern `context.sql.get_config(context, {foo})` is unnecessary
redundant in Rust: unlike C, Rust has associated functions (methods).
This commit is contained in:
@@ -2,6 +2,7 @@ use std::ffi::CString;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use crate::chatlist::*;
|
||||
use crate::config::*;
|
||||
use crate::constants::*;
|
||||
use crate::contact::*;
|
||||
use crate::context::Context;
|
||||
@@ -267,7 +268,7 @@ impl Chat {
|
||||
return Ok(0);
|
||||
}
|
||||
|
||||
if let Some(from) = context.sql.get_config(context, "configured_addr") {
|
||||
if let Some(from) = context.get_config(Config::ConfiguredAddr) {
|
||||
let new_rfc724_mid = {
|
||||
let grpid = match self.typ {
|
||||
Chattype::Group | Chattype::VerifiedGroup => Some(self.grpid.as_str()),
|
||||
|
||||
Reference in New Issue
Block a user