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

This commit is contained in:
iequidoo
2026-06-18 17:36:02 -03:00
committed by iequidoo
parent 3f371b3895
commit cd38aae4d6
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -1081,7 +1081,9 @@ impl CommandApi {
/// Create a new unencrypted group chat. /// Create a new unencrypted group chat.
/// ///
/// Same as [`Self::create_group_chat`], but the chat is unencrypted and can only have /// 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> { async fn create_group_chat_unencrypted(&self, account_id: u32, name: String) -> Result<u32> {
let ctx = self.get_context(account_id).await?; let ctx = self.get_context(account_id).await?;
chat::create_group_unencrypted(&ctx, &name) chat::create_group_unencrypted(&ctx, &name)
+4
View File
@@ -3556,6 +3556,10 @@ pub async fn create_group_unencrypted(context: &Context, name: &str) -> Result<C
/// unencrypted chats currently. /// unencrypted chats currently.
/// * `grpid` - Group ID. Iff nonempty, the chat is encrypted (with key-contacts). /// * `grpid` - Group ID. Iff nonempty, the chat is encrypted (with key-contacts).
/// * `name` - Chat name. /// * `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(crate) async fn create_group_ex( pub(crate) async fn create_group_ex(
context: &Context, context: &Context,
sync: sync::Sync, sync: sync::Sync,