mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
docs: delete_chat(): Don't lie that messages aren't deleted from server
Messages are actually deleted from the server. I've checked this in Desktop.
This commit is contained in:
@@ -1611,10 +1611,10 @@ void dc_set_chat_visibility (dc_context_t* context, uint32_t ch
|
|||||||
*
|
*
|
||||||
* Messages are deleted from the device and the chat database entry is deleted.
|
* Messages are deleted from the device and the chat database entry is deleted.
|
||||||
* After that, the event #DC_EVENT_MSGS_CHANGED is posted.
|
* After that, the event #DC_EVENT_MSGS_CHANGED is posted.
|
||||||
|
* Messages are deleted from the server in background.
|
||||||
*
|
*
|
||||||
* Things that are _not_ done implicitly:
|
* Things that are _not_ done implicitly:
|
||||||
*
|
*
|
||||||
* - Messages are **not deleted from the server**.
|
|
||||||
* - The chat or the contact is **not blocked**, so new messages from the user/the group may appear
|
* - The chat or the contact is **not blocked**, so new messages from the user/the group may appear
|
||||||
* and the user may create the chat again.
|
* and the user may create the chat again.
|
||||||
* - **Groups are not left** - this would
|
* - **Groups are not left** - this would
|
||||||
|
|||||||
@@ -795,11 +795,11 @@ impl CommandApi {
|
|||||||
/// Delete a chat.
|
/// Delete a chat.
|
||||||
///
|
///
|
||||||
/// Messages are deleted from the device and the chat database entry is deleted.
|
/// Messages are deleted from the device and the chat database entry is deleted.
|
||||||
/// After that, the event #DC_EVENT_MSGS_CHANGED is posted.
|
/// After that, a `MsgsChanged` event is emitted.
|
||||||
|
/// Messages are deleted from the server in background.
|
||||||
///
|
///
|
||||||
/// Things that are _not done_ implicitly:
|
/// Things that are _not done_ implicitly:
|
||||||
///
|
///
|
||||||
/// - Messages are **not deleted from the server**.
|
|
||||||
/// - The chat or the contact is **not blocked**, so new messages from the user/the group may appear as a contact request
|
/// - The chat or the contact is **not blocked**, so new messages from the user/the group may appear as a contact request
|
||||||
/// and the user may create the chat again.
|
/// and the user may create the chat again.
|
||||||
/// - **Groups are not left** - this would
|
/// - **Groups are not left** - this would
|
||||||
|
|||||||
@@ -600,6 +600,10 @@ impl ChatId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Deletes a chat.
|
/// Deletes a chat.
|
||||||
|
///
|
||||||
|
/// Messages are deleted from the device and the chat database entry is deleted.
|
||||||
|
/// After that, a `MsgsChanged` event is emitted.
|
||||||
|
/// Messages are deleted from the server in background.
|
||||||
pub async fn delete(self, context: &Context) -> Result<()> {
|
pub async fn delete(self, context: &Context) -> Result<()> {
|
||||||
self.delete_ex(context, Sync).await
|
self.delete_ex(context, Sync).await
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user