mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 22:16:30 +03:00
feat: only accept SetContacts sync messages for broadcast lists
Delta Chat does not send synchronization messages for group member lists, so we don't need to maintain the code accepting it.
This commit is contained in:
@@ -4707,8 +4707,8 @@ pub(crate) async fn update_msg_text_and_timestamp(
|
||||
async fn set_contacts_by_addrs(context: &Context, id: ChatId, addrs: &[String]) -> Result<()> {
|
||||
let chat = Chat::load_from_db(context, id).await?;
|
||||
ensure!(
|
||||
chat.typ == Chattype::Group || chat.typ == Chattype::Broadcast,
|
||||
"{id} is not a group/broadcast",
|
||||
chat.typ == Chattype::Broadcast,
|
||||
"{id} is not a broadcast list",
|
||||
);
|
||||
let mut contacts = HashSet::new();
|
||||
for addr in addrs {
|
||||
|
||||
Reference in New Issue
Block a user