Adds a contact to the chat.
If the group is promoted, also sends out a system message to all group members
Adds a message to device chat.
Adds a message to device chat.
Adds info message with a given text and timestamp
to the chat.
Adds an informational message to chat.
Adds contacts to the chats_contacts
table.
Creates a new broadcast list.
Creates a group chat with a given name
.
Constructs jobs for sending a message and inserts them into the appropriate table.
Finds an unused name for a new broadcast list.
Forwards multiple messages to a chat.
Returns a vector of contact IDs for given chat ID.
Returns a tuple of (chatid, is_protected, blocked)
.
Returns all database message IDs of the given types.
Returns all messages belonging to the chat.
Returns messages belonging to the chat according to the given options.
Returns whether a contact is in a chat or not.
Marks messages preceding outgoing messages as noticed.
Marks all messages in the chat as noticed.
If the given chat-id is the archive-link, marks all messages in all archived chats as noticed.
Prepares a message for sending.
Prepares a message to be sent out.
Returns row ids of the smtp
table.
Removes contact from the chat.
remove a contact from the chats_contact table
Resends given messages with the same Message-ID.
Checks if there is a 1:1 chat in-progress SecureJoin for Bob and, if necessary, schedules a task
unblocking the chat and notifying the user accordingly.
Sends a message object to a chat.
Tries to send a message synchronously.
Sends a text message to the given chat.
Sends invitation to a videochat.
Sets group or mailing list chat name.
Sets a new profile image for the chat.
Set chat contacts by their addresses creating the corresponding contacts if necessary.
Mutes the chat for a given duration or unmutes it.
Returns true if an avatar should be attached in the given chat.
Set chat contacts in the chats_contacts
table.
Returns true if device message with a given label was ever added to the device chat.