From b6db3802d31546a0250220d0f3c305d6e4ec5362 Mon Sep 17 00:00:00 2001 From: Nicholas Tinsley Date: Tue, 7 May 2024 16:45:56 -0400 Subject: [PATCH] Set raised hand list to be distinct by RecipientID. --- .../securesms/components/webrtc/CallParticipantsState.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt index a516d63534..4ae9169def 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallParticipantsState.kt @@ -55,7 +55,7 @@ data class CallParticipantsState( get() { val results = allRemoteParticipants.asSequence() .filter { it.isHandRaised } - .distinctBy { it.recipient } + .distinctBy { it.recipient.id } .map { GroupCallRaiseHandEvent(it.recipient, it.handRaisedTimestamp) } .sortedBy { it.timestamp } .toMutableList()