doc: create_group_chat_unencrypted() may lead to chat split on the first device

This commit is contained in:
iequidoo
2025-07-25 07:13:25 -03:00
parent 4e47ebd5fc
commit eae8b13c8b
2 changed files with 7 additions and 1 deletions

View File

@@ -985,7 +985,9 @@ impl CommandApi {
/// Create a new unencrypted group chat.
///
/// Same as [`Self::create_group_chat`], but the chat is unencrypted and can only have
/// address-contacts.
/// address-contacts. NB: Chats with similar names and the same members are merged on other
/// devices, but usually users don't create such chats and look up the existing one instead, so
/// chat split on the first device is acceptable.
async fn create_group_chat_unencrypted(&self, account_id: u32, name: String) -> Result<u32> {
let ctx = self.get_context(account_id).await?;
chat::create_group_ex(&ctx, None, &name)

View File

@@ -3712,6 +3712,10 @@ pub async fn create_group_chat(
///
/// * `encryption` - If `Some`, the chat is encrypted (with key-contacts) and can be protected.
/// * `name` - Chat name.
///
/// NB: Unencrypted chats with similar names and the same members are merged on other devices, but
/// usually users don't create such chats and look up the existing one instead, so chat split on the
/// first device is acceptable.
pub async fn create_group_ex(
context: &Context,
encryption: Option<ProtectionStatus>,