fix: Make broadcast owner and subscriber hidden contacts for each other (#7856)

This commit is contained in:
iequidoo
2026-03-04 12:16:02 -03:00
committed by iequidoo
parent 89b5675b83
commit 0c4e32363e
5 changed files with 42 additions and 8 deletions

View File

@@ -456,9 +456,16 @@ impl MimeFactory {
.filter(|id| *id != ContactId::SELF)
.collect();
if recipient_ids.len() == 1
&& msg.param.get_cmd() != SystemMessage::MemberRemovedFromGroup
&& chat.typ != Chattype::OutBroadcast
&& !matches!(
msg.param.get_cmd(),
SystemMessage::MemberRemovedFromGroup | SystemMessage::SecurejoinMessage
)
&& !matches!(chat.typ, Chattype::OutBroadcast | Chattype::InBroadcast)
{
info!(
context,
"Scale up origin of {} recipients to OutgoingTo.", chat.id
);
ContactId::scaleup_origin(context, &recipient_ids, Origin::OutgoingTo).await?;
}