Skip to content

Commit

Permalink
Actually apply hacky deduplication for DM participants
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 29, 2024
1 parent 1736444 commit d35936e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,7 @@ func (portal *Portal) SyncParticipants(ctx context.Context, source *User, metada
Any("participants", filteredParticipants).
Any("chosen_participant", bestParticipant).
Msg("Applied hacky deduplication to DM participants with same contact ID")
filteredParticipants = []*gmproto.Participant{bestParticipant}
}
for _, participant := range filteredParticipants {
puppet := source.GetPuppetByID(participant.ID.ParticipantID, participant.ID.Number)
Expand Down

0 comments on commit d35936e

Please sign in to comment.