Set raised hand list to be distinct by RecipientID.

This commit is contained in:
Nicholas Tinsley 2024-05-07 16:45:56 -04:00 committed by Alex Hart
parent a9a19d3ae0
commit b6db3802d3

View file

@ -55,7 +55,7 @@ data class CallParticipantsState(
get() { get() {
val results = allRemoteParticipants.asSequence() val results = allRemoteParticipants.asSequence()
.filter { it.isHandRaised } .filter { it.isHandRaised }
.distinctBy { it.recipient } .distinctBy { it.recipient.id }
.map { GroupCallRaiseHandEvent(it.recipient, it.handRaisedTimestamp) } .map { GroupCallRaiseHandEvent(it.recipient, it.handRaisedTimestamp) }
.sortedBy { it.timestamp } .sortedBy { it.timestamp }
.toMutableList() .toMutableList()