address some of flubs comments

This commit is contained in:
Simon Laux
2020-02-11 11:54:04 +01:00
committed by B. Petersen
parent ac4b2b9dfe
commit 2e8409f146
5 changed files with 21 additions and 16 deletions

View File

@@ -2845,6 +2845,10 @@ char* dc_chat_get_profile_image (const dc_chat_t* chat);
uint32_t dc_chat_get_color (const dc_chat_t* chat);
#define DC_CHAT_ARCHIVE_STATE_NORMAL 0
#define DC_CHAT_ARCHIVE_STATE_ARCHIVED 1
#define DC_CHAT_ARCHIVE_STATE_PINNED 2
/**
* Get archived state.
*

View File

@@ -1203,7 +1203,7 @@ pub unsafe extern "C" fn dc_archive_chat(
1 => ArchiveState::Archived,
2 => ArchiveState::Pinned,
_ => {
eprintln!("ignoring careless call to dc_archive_chat(): unknown archived state");
ffi_context.warning("ignoring careless call to dc_archive_chat(): unknown archived state");
return;
}
};