mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-22 10:46:50 +00:00
Fix bug with mute states not dynamically updating in participants list.
This commit is contained in:
committed by
Alan Evans
parent
fc43a0d8e9
commit
fe01e80af5
@@ -36,4 +36,16 @@ public final class CallParticipantViewState extends RecipientMappingModel<CallPa
|
||||
public int getAudioMutedVisibility() {
|
||||
return callParticipant.isMicrophoneEnabled() ? View.GONE : View.VISIBLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areItemsTheSame(@NonNull CallParticipantViewState newItem) {
|
||||
return callParticipant.getCallParticipantId().equals(newItem.callParticipant.getCallParticipantId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean areContentsTheSame(@NonNull CallParticipantViewState newItem) {
|
||||
return super.areContentsTheSame(newItem) &&
|
||||
callParticipant.isVideoEnabled() == newItem.callParticipant.isVideoEnabled() &&
|
||||
callParticipant.isMicrophoneEnabled() == newItem.callParticipant.isMicrophoneEnabled();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user