mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
api!: remove APIs to create protected chats
Create unprotected group in test_create_protected_grp_multidev The test is renamed accordingly. SystemMessage::ChatE2ee is added in encrypted groups regardless of whether they are protected or not. Previously new encrypted unprotected groups had no message saying that messages are end-to-end encrypted at all.
This commit is contained in:
@@ -21,8 +21,8 @@ use tokio::runtime::Handle;
|
||||
use tokio::{fs, task};
|
||||
|
||||
use crate::chat::{
|
||||
self, Chat, ChatId, ChatIdBlocked, MessageListOptions, ProtectionStatus,
|
||||
add_to_chat_contacts_table, create_group_chat,
|
||||
self, Chat, ChatId, ChatIdBlocked, MessageListOptions, add_to_chat_contacts_table,
|
||||
create_group_chat,
|
||||
};
|
||||
use crate::chatlist::Chatlist;
|
||||
use crate::config::Config;
|
||||
@@ -1066,11 +1066,10 @@ impl TestContext {
|
||||
|
||||
pub async fn create_group_with_members(
|
||||
&self,
|
||||
protect: ProtectionStatus,
|
||||
chat_name: &str,
|
||||
members: &[&TestContext],
|
||||
) -> ChatId {
|
||||
let chat_id = create_group_chat(self, protect, chat_name).await.unwrap();
|
||||
let chat_id = create_group_chat(self, chat_name).await.unwrap();
|
||||
let mut to_add = vec![];
|
||||
for member in members {
|
||||
let contact_id = self.add_or_lookup_contact_id(member).await;
|
||||
|
||||
Reference in New Issue
Block a user