mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Handle blocked users in group calls.
This commit is contained in:
committed by
Greyson Parrelli
parent
01f143667f
commit
050fad3114
@@ -444,6 +444,10 @@ public class WebRtcCallService extends Service implements CallManager.Observer,
|
||||
{
|
||||
Callable<Boolean> callable = () -> {
|
||||
Recipient recipient = remotePeer.getRecipient();
|
||||
if (recipient.isBlocked()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
messageSender.sendCallMessage(RecipientUtil.toSignalServiceAddress(WebRtcCallService.this, recipient),
|
||||
UnidentifiedAccessUtil.getAccessFor(WebRtcCallService.this, recipient),
|
||||
callMessage);
|
||||
|
||||
@@ -46,7 +46,8 @@ public class BeginCallActionProcessorDelegate extends WebRtcActionProcessor {
|
||||
new BroadcastVideoSink(currentState.getVideoState().getEglBase()),
|
||||
true,
|
||||
false,
|
||||
0
|
||||
0,
|
||||
true
|
||||
))
|
||||
.build();
|
||||
|
||||
@@ -86,7 +87,8 @@ public class BeginCallActionProcessorDelegate extends WebRtcActionProcessor {
|
||||
new BroadcastVideoSink(currentState.getVideoState().getEglBase()),
|
||||
true,
|
||||
false,
|
||||
0
|
||||
0,
|
||||
true
|
||||
))
|
||||
.build();
|
||||
}
|
||||
|
||||
@@ -70,7 +70,8 @@ public class GroupActionProcessor extends DeviceAwareActionProcessor {
|
||||
videoSink,
|
||||
Boolean.FALSE.equals(device.getAudioMuted()),
|
||||
Boolean.FALSE.equals(device.getVideoMuted()),
|
||||
device.getSpeakerTime()));
|
||||
device.getSpeakerTime(),
|
||||
device.getMediaKeysReceived()));
|
||||
}
|
||||
|
||||
return builder.build();
|
||||
|
||||
@@ -114,7 +114,7 @@ public class GroupPreJoinActionProcessor extends GroupActionProcessor {
|
||||
.changeCallInfoState();
|
||||
|
||||
for (Recipient recipient : callParticipants) {
|
||||
builder.putParticipant(recipient, CallParticipant.createRemote(recipient, null, new BroadcastVideoSink(null), true, true, 0));
|
||||
builder.putParticipant(recipient, CallParticipant.createRemote(recipient, null, new BroadcastVideoSink(null), true, true, 0, false));
|
||||
}
|
||||
|
||||
return builder.build();
|
||||
|
||||
Reference in New Issue
Block a user