Implement helper method to easily check if a bit flag is inside

listflags. Make Contact::get_all use it

Add method documentation and tests
This commit is contained in:
jikstra
2019-09-05 01:27:23 +02:00
committed by holger krekel
parent 6be4a6ed00
commit 5ff472dae0
3 changed files with 32 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ pub const DC_GCL_ADD_ALLDONE_HINT: usize = 0x04;
const DC_GCM_ADDDAYMARKER: usize = 0x01;
const DC_GCL_VERIFIED_ONLY: usize = 0x01;
pub const DC_GCL_VERIFIED_ONLY: usize = 0x01;
pub const DC_GCL_ADD_SELF: usize = 0x02;
/// param1 is a directory where the keys are written to