Delta Chat Core C Interface
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_reactions_t Class Reference

#include <deltachat.h>

Public Member Functions

char * dc_reactions_get_by_contact_id (dc_reactions_t *reactions, uint32_t contact_id)
 Returns a string containing space-separated reactions of a single contact.
 
dc_array_tdc_reactions_get_contacts (dc_reactions_t *reactions)
 Returns array of contacts which reacted to the given message.
 
void dc_reactions_unref (dc_reactions_t *reactions)
 Frees an object containing message reactions.
 

Detailed Description

Deprecated
2023-11-27, use jsonrpc method get_message_reactions instead

An object representing all reactions for a single message.

Member Function Documentation

◆ dc_reactions_get_by_contact_id()

char * dc_reactions_get_by_contact_id ( dc_reactions_t * reactions,
uint32_t contact_id )

Returns a string containing space-separated reactions of a single contact.

Deprecated
2023-11-27, use jsonrpc method get_message_reactions instead
Parameters
reactionsThe object containing message reactions.
contact_idID of the contact.
Returns
Space-separated list of emoji sequences, which could be empty. Returned string should not be modified and should be freed with dc_str_unref() after usage.

◆ dc_reactions_get_contacts()

dc_array_t * dc_reactions_get_contacts ( dc_reactions_t * reactions)

Returns array of contacts which reacted to the given message.

Deprecated
2023-11-27, use jsonrpc method get_message_reactions instead
Parameters
reactionsThe object containing message reactions.
Returns
array of contact IDs. Use dc_array_get_cnt() to get array length and dc_array_get_id() to get the IDs. Should be freed using dc_array_unref() after usage.

◆ dc_reactions_unref()

void dc_reactions_unref ( dc_reactions_t * reactions)

Frees an object containing message reactions.

Reactions objects are created by dc_get_msg_reactions().

Deprecated
2023-11-27
Parameters
reactionsThe object to free. If NULL is given, nothing is done.

The documentation for this class was generated from the following file: