소스 검색

Remove redundant double-inviting of users

Tulir Asokan 3 년 전
부모
커밋
a093b7f157
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      portal.go

+ 1 - 1
portal.go

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