Prevent crash if linked device also raises their hand.

This commit is contained in:
Nicholas Tinsley
2024-06-06 16:22:16 -04:00
committed by Cody Henthorne
parent 4151d123cd
commit fdf858f379

View File

@@ -60,6 +60,7 @@ data class CallParticipantsState(
.sortedBy { it.timestamp } .sortedBy { it.timestamp }
.toMutableList() .toMutableList()
if (localParticipant.isHandRaised) { if (localParticipant.isHandRaised) {
results.removeIf { it.sender.id == localParticipant.recipient.id }
results.add(GroupCallRaiseHandEvent(localParticipant.recipient, localParticipant.handRaisedTimestamp)) results.add(GroupCallRaiseHandEvent(localParticipant.recipient, localParticipant.handRaisedTimestamp))
} }
return results.toImmutableList() return results.toImmutableList()