From d35936e85702febfc500a7122338ba7ca4f39510 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 29 Feb 2024 17:25:51 +0200 Subject: [PATCH] Actually apply hacky deduplication for DM participants --- portal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/portal.go b/portal.go index 4d1aa8e..dc6d1eb 100644 --- a/portal.go +++ b/portal.go @@ -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)