![]() |
Delta Chat Core C Interface
|
These constants describe the type of a chat. More...
Macros | |
| #define | DC_CHAT_TYPE_GROUP 120 |
| A group chat. | |
| #define | DC_CHAT_TYPE_IN_BROADCAST 165 |
| Incoming broadcast channel, called "Channel" in the UI. | |
| #define | DC_CHAT_TYPE_MAILINGLIST 140 |
| A mailing list. | |
| #define | DC_CHAT_TYPE_OUT_BROADCAST 160 |
| Outgoing broadcast channel, called "Channel" in the UI. | |
| #define | DC_CHAT_TYPE_SINGLE 100 |
| A one-to-one chat with a single contact. | |
| #define | DC_CHAT_TYPE_UNDEFINED 0 |
| Undefined chat type. | |
These constants describe the type of a chat.
The chat type can be retrieved using dc_chat_get_type() and the type does not change during the chat's lifetime.
| #define DC_CHAT_TYPE_GROUP 120 |
A group chat.
dc_get_chat_contacts() contain all group members, including DC_CONTACT_ID_SELF. Groups are created by dc_create_group_chat().
| #define DC_CHAT_TYPE_IN_BROADCAST 165 |
Incoming broadcast channel, called "Channel" in the UI.
This chat is read-only, and we do not know who the other recipients are.
This is similar to DC_CHAT_TYPE_MAILINGLIST, with the main difference being that broadcasts are encrypted.
Called broadcast here rather than channel, because the word "channel" already appears a lot in the code, which would make it hard to grep for it.
| #define DC_CHAT_TYPE_MAILINGLIST 140 |
A mailing list.
This is similar to groups, however, the member list cannot be retrieved completely and cannot be changed using an API from this library. Mailing lists are created as needed by incoming messages and usually require some special server; they cannot be created by a function call as the other chat types.
| #define DC_CHAT_TYPE_OUT_BROADCAST 160 |
Outgoing broadcast channel, called "Channel" in the UI.
The user can send into this chat, and all recipients will receive messages in a DC_CHAT_TYPE_IN_BROADCAST.
Called broadcast here rather than channel, because the word "channel" already appears a lot in the code, which would make it hard to grep for it.
| #define DC_CHAT_TYPE_SINGLE 100 |
A one-to-one chat with a single contact.
dc_get_chat_contacts() contains one record for the user. DC_CONTACT_ID_SELF is added only for a self talk. These chats are created by dc_create_chat_by_contact_id().
| #define DC_CHAT_TYPE_UNDEFINED 0 |
Undefined chat type.
Normally, this type is not returned.