mirror of
https://github.com/chatmail/core.git
synced 2026-04-29 03:16:29 +03:00
prefer get_config_bool() where appropriate
for db input/output, we still use get_config_int() to convert to/from 0/1. also for info() we prefer get_config_int() to show the real value.
This commit is contained in:
committed by
Floris Bruynooghe
parent
8dfd04672f
commit
79b92727cc
@@ -852,9 +852,7 @@ unsafe fn handle_reports(
|
||||
let mut param = Params::new();
|
||||
param.set(Param::ServerFolder, server_folder.as_ref());
|
||||
param.set_int(Param::ServerUid, server_uid as i32);
|
||||
if mime_parser.is_send_by_messenger
|
||||
&& 0 != context.get_config_int(Config::MvboxMove)
|
||||
{
|
||||
if mime_parser.is_send_by_messenger && context.get_config_bool(Config::MvboxMove) {
|
||||
param.set_int(Param::AlsoMove, 1);
|
||||
}
|
||||
job_add(context, Action::MarkseenMdnOnImap, 0, param, 0);
|
||||
|
||||
Reference in New Issue
Block a user