mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-20 14:17:46 +00:00
Remove unneeded condition
If the call is a voice only call there will be no received video tracks (they would have been stopped when each connection is established), so changing the enabled state has no effect (as the adapter only tries to show the received video if it is available). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
ac4be52b84
commit
a65e56a9ce
@ -2170,7 +2170,7 @@ public class CallActivity extends CallBaseActivity {
|
||||
participantsAdapter.notifyDataSetChanged();
|
||||
}
|
||||
} else if (peerConnectionEvent.getPeerConnectionEventType() ==
|
||||
PeerConnectionEvent.PeerConnectionEventType.VIDEO_CHANGE && !isVoiceOnlyCall) {
|
||||
PeerConnectionEvent.PeerConnectionEventType.VIDEO_CHANGE) {
|
||||
if (participantDisplayItems.get(participantDisplayItemId) != null) {
|
||||
participantDisplayItems.get(participantDisplayItemId).setStreamEnabled(peerConnectionEvent.getChangeValue());
|
||||
participantsAdapter.notifyDataSetChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user