mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-29 01:03:53 +02:00
Remove redundant double-inviting of users
This commit is contained in:
parent
4a49de388c
commit
a093b7f157
|
@ -743,7 +743,7 @@ func (portal *Portal) SyncParticipants(source *User, metadata *types.GroupInfo)
|
|||
puppet := portal.bridge.GetPuppetByJID(participant.JID)
|
||||
puppet.SyncContact(source, true, "group participant")
|
||||
user := portal.bridge.GetUserByJID(participant.JID)
|
||||
if user != nil {
|
||||
if user != nil && user != source {
|
||||
portal.ensureUserInvited(user)
|
||||
}
|
||||
if user == nil || !puppet.IntentFor(portal).IsCustomPuppet {
|
||||
|
|
Loading…
Reference in a new issue