Skip to content

Commit

Permalink
fix: no implicit member changes if we are added to the group
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Jan 30, 2025
1 parent b40a1ee commit 08ff63f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/receive_imf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,11 @@ async fn apply_group_changes(
if let Some(removed_id) = removed_id {
removed_ids.remove(&removed_id);
}
let group_changes_msgs = group_changes_msgs(context, &added_ids, &removed_ids, chat_id).await?;
let group_changes_msgs = if self_added {
Vec::new()
} else {
group_changes_msgs(context, &added_ids, &removed_ids, chat_id).await?
};

if let Some(avatar_action) = &mime_parser.group_avatar {
if !new_chat_contacts.contains(&ContactId::SELF) {
Expand Down

0 comments on commit 08ff63f

Please sign in to comment.