Skip to content

Commit 49a0b2d

Browse files
committed
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.
1 parent 7bc9dd6 commit 49a0b2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chat.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4707,8 +4707,8 @@ pub(crate) async fn update_msg_text_and_timestamp(
47074707
async fn set_contacts_by_addrs(context: &Context, id: ChatId, addrs: &[String]) -> Result<()> {
47084708
let chat = Chat::load_from_db(context, id).await?;
47094709
ensure!(
4710-
chat.typ == Chattype::Group || chat.typ == Chattype::Broadcast,
4711-
"{id} is not a group/broadcast",
4710+
chat.typ == Chattype::Broadcast,
4711+
"{id} is not a broadcast list",
47124712
);
47134713
let mut contacts = HashSet::new();
47144714
for addr in addrs {

0 commit comments

Comments
 (0)