mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
Make it compile
This commit is contained in:
@@ -175,7 +175,7 @@ pub enum Param {
|
|||||||
/// For Chats of type [`Chattype::OutBroadcast`] and [`Chattype::InBroadcast`]: // TODO (or just OutBroadcast)
|
/// For Chats of type [`Chattype::OutBroadcast`] and [`Chattype::InBroadcast`]: // TODO (or just OutBroadcast)
|
||||||
/// The symmetric key shared among all chat participants,
|
/// The symmetric key shared among all chat participants,
|
||||||
/// used to encrypt and decrypt messages.
|
/// used to encrypt and decrypt messages.
|
||||||
SymmetricKey = b'z', // TODO remove this again
|
SymmetricKey = b'z', // TODO remove this
|
||||||
|
|
||||||
/// For Contacts: If this is the List-Post address of a mailing list, contains
|
/// For Contacts: If this is the List-Post address of a mailing list, contains
|
||||||
/// the List-Id of the mailing list (which is also used as the group id of the chat).
|
/// the List-Id of the mailing list (which is also used as the group id of the chat).
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ use crate::securejoin::{self, handle_securejoin_handshake, observe_securejoin_on
|
|||||||
use crate::simplify;
|
use crate::simplify;
|
||||||
use crate::stock_str;
|
use crate::stock_str;
|
||||||
use crate::sync::Sync::*;
|
use crate::sync::Sync::*;
|
||||||
use crate::tools::{self, buf_compress, remove_subject_prefix};
|
use crate::tools::{self, buf_compress, create_broadcast_shared_secret, remove_subject_prefix};
|
||||||
use crate::{chatlist_events, ensure_and_debug_assert, ensure_and_debug_assert_eq, location};
|
use crate::{chatlist_events, ensure_and_debug_assert, ensure_and_debug_assert_eq, location};
|
||||||
use crate::{contact, imap};
|
use crate::{contact, imap};
|
||||||
|
|
||||||
@@ -1566,7 +1566,8 @@ async fn do_chat_assignment(
|
|||||||
} else {
|
} else {
|
||||||
let name =
|
let name =
|
||||||
compute_mailinglist_name(mailinglist_header, &listid, mime_parser);
|
compute_mailinglist_name(mailinglist_header, &listid, mime_parser);
|
||||||
chat::create_broadcast_ex(context, Nosync, listid, name).await?
|
let secret = create_broadcast_shared_secret();
|
||||||
|
chat::create_broadcast_ex(context, Nosync, listid, name, secret).await?
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user