From 49a0b2d94814df44f28fae19b3ec466cfb4e4cf0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 22 Jan 2025 18:46:11 +0000 Subject: [PATCH] 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. --- src/chat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 6d7a37d20..33c00e9cb 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -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 {