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 Oscar Mira
parent 8365310bb5
commit 91bc43ff44
No known key found for this signature in database
GPG key ID: B371B98C5DC32237

View file

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