Refine signature of dc_get_oauth2_access_token()

Previously, `dc_get_oauth2_access_token` accepted "flags" argument,
that actually had only one possible field: 0x1 == DC_REGENERATE.

This change replaces "flags" argument with single boolean argument
"regenerate".
This commit is contained in:
Dmitry Bogatov
2019-09-18 14:19:57 +00:00
committed by holger krekel
parent 8667de994e
commit 95d8665dbe
4 changed files with 8 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ impl Smtp {
// oauth2
let addr = &lp.addr;
let send_pw = &lp.send_pw;
let access_token = dc_get_oauth2_access_token(context, addr, send_pw, 0);
let access_token = dc_get_oauth2_access_token(context, addr, send_pw, false);
if access_token.is_none() {
return false;
}