fix: Only omit group changes messages if SELF is really added (#7220)

If a self-addition message is received, but we're already in the group, there must be no hidden
member changes.
This commit is contained in:
iequidoo
2025-09-28 13:41:35 -03:00
committed by iequidoo
parent 1bb966e5a8
commit 6a7466df93
3 changed files with 20 additions and 2 deletions

View File

@@ -3078,7 +3078,9 @@ async fn apply_group_changes(
if let Some(removed_id) = removed_id {
removed_ids.remove(&removed_id);
}
let group_changes_msgs = if self_added {
let group_changes_msgs = if !chat_contacts.contains(&ContactId::SELF)
&& new_chat_contacts.contains(&ContactId::SELF)
{
Vec::new()
} else {
group_changes_msgs(context, &added_ids, &removed_ids, chat.id).await?