mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Prevent crash if linked device also raises their hand.
This commit is contained in:
committed by
Cody Henthorne
parent
4151d123cd
commit
fdf858f379
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user