From 2fa2ade3ae739041aa851a20e3fad3fcce180f35 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Sat, 10 Dec 2022 15:10:45 +0100 Subject: [PATCH] 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 --- src/receive_imf.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/receive_imf.rs b/src/receive_imf.rs index 42fe507cf..e1e098a9d 100644 --- a/src/receive_imf.rs +++ b/src/receive_imf.rs @@ -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 {