mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
add can_send_edit_request() api
This commit is contained in:
@@ -1039,6 +1039,20 @@ uint32_t dc_send_msg_sync (dc_context_t* context, uint32
|
||||
uint32_t dc_send_text_msg (dc_context_t* context, uint32_t chat_id, const char* text_to_send);
|
||||
|
||||
|
||||
/**
|
||||
* Check if a message can be edited using dc_send_edit_request().
|
||||
*
|
||||
* Messages that cannot be edited are eg. info messages or messages not sent by self.
|
||||
* UI will usually check this function whether to display an "Edit" option or not.
|
||||
*
|
||||
* @memberof dc_context_t
|
||||
* @param context The context object.
|
||||
* @param msg_id The message ID to check.
|
||||
* @return 1=message can be edited, 0=message cannot be edited.
|
||||
*/
|
||||
int dc_can_send_edit_request (dc_context_t* context, uint32_t msg_id);
|
||||
|
||||
|
||||
/**
|
||||
* Send chat members a request to edit the given message's text.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user