mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
add a ffi-definiton for a new get-chat summary function that returns json
This commit is contained in:
@@ -2602,6 +2602,25 @@ dc_lot_t* dc_chatlist_get_summary (const dc_chatlist_t* chatlist, siz
|
|||||||
dc_context_t* dc_chatlist_get_context (dc_chatlist_t* chatlist);
|
dc_context_t* dc_chatlist_get_context (dc_chatlist_t* chatlist);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get info summary for a chat, in json format.
|
||||||
|
*
|
||||||
|
* The returned json string has the following key/values:
|
||||||
|
*
|
||||||
|
* id: chat id
|
||||||
|
* name: chat/group name
|
||||||
|
* color: color of this chat
|
||||||
|
* last-message-from: who sent the last message
|
||||||
|
* last-message-text: message (truncated)
|
||||||
|
* last-message-state: DC_STATE* constant
|
||||||
|
* last-message-date:
|
||||||
|
* avatar-path: path-to-blobfile
|
||||||
|
* is_verified: yes/no
|
||||||
|
|
||||||
|
* @return a utf8-encoded json string containing all requested info. Must be freed using dc_lot_unref(). NULL is never returned.
|
||||||
|
*/
|
||||||
|
char* dc_chat_get_info_json(dc_context_t* context, size_t chat_id)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class dc_chat_t
|
* @class dc_chat_t
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user