mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
change ChatInfo.archived to tri-state
and add to the changelog
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user