change ChatInfo.archived to tri-state

and add to the changelog
This commit is contained in:
Simon Laux
2020-02-12 11:08:43 +01:00
committed by B. Petersen
parent 2e8409f146
commit 6efe8e7d7c
4 changed files with 21 additions and 9 deletions

View File

@@ -2700,6 +2700,10 @@ dc_context_t* dc_chatlist_get_context (dc_chatlist_t* chatlist);
*
* id: chat id
* name: chat/group name
* archived: archived state can be one of:
* DC_CHAT_ARCHIVE_STATE_NORMAL
* DC_CHAT_ARCHIVE_STATE_ARCHIVED
* DC_CHAT_ARCHIVE_STATE_PINNED
* color: color of this chat
* last-message-from: who sent the last message
* last-message-text: message (truncated)

View File

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