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:
link2xt
2025-01-22 18:46:11 +00:00
committed by l
parent 7bc9dd6c98
commit 49a0b2d948

View File

@@ -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 {