mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
use context.get_config_bool() for Config::Bot everywhere (#3834)
We were already using context.get_config_bool(Config::Bot) in some places, this unifies this. Followup for #3831
This commit is contained in:
@@ -525,7 +525,7 @@ async fn add_parts(
|
||||
}
|
||||
|
||||
// signals wether the current user is a bot
|
||||
let is_bot = context.get_config(Config::Bot).await?.is_some();
|
||||
let is_bot = context.get_config_bool(Config::Bot).await?;
|
||||
|
||||
if chat_id.is_none() {
|
||||
// try to create a group
|
||||
@@ -1858,7 +1858,7 @@ async fn create_or_lookup_mailinglist(
|
||||
p.to_string()
|
||||
});
|
||||
|
||||
let is_bot = context.get_config(Config::Bot).await?.is_some();
|
||||
let is_bot = context.get_config_bool(Config::Bot).await?;
|
||||
let blocked = if is_bot {
|
||||
Blocked::Not
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user