mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +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
|
// 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() {
|
if chat_id.is_none() {
|
||||||
// try to create a group
|
// try to create a group
|
||||||
@@ -1858,7 +1858,7 @@ async fn create_or_lookup_mailinglist(
|
|||||||
p.to_string()
|
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 {
|
let blocked = if is_bot {
|
||||||
Blocked::Not
|
Blocked::Not
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user