Remove redundant double-inviting of users

This commit is contained in:
Tulir Asokan 2022-01-17 16:26:26 +02:00
parent 4a49de388c
commit a093b7f157

View file

@ -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 {