File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
app/src/main/java/org/thoughtcrime/securesms/service/webrtc Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 8
8
import org .thoughtcrime .securesms .database .DatabaseFactory ;
9
9
import org .thoughtcrime .securesms .events .WebRtcViewModel ;
10
10
import org .thoughtcrime .securesms .groups .GroupId ;
11
+ import org .thoughtcrime .securesms .recipients .Recipient ;
11
12
import org .thoughtcrime .securesms .ringrtc .RemotePeer ;
12
13
import org .thoughtcrime .securesms .service .webrtc .state .WebRtcServiceState ;
13
14
import org .whispersystems .signalservice .api .messages .calls .OfferMessage ;
@@ -44,6 +45,12 @@ public IdleActionProcessor(@NonNull WebRtcInteractor webRtcInteractor) {
44
45
{
45
46
Log .i (TAG , "handleOutgoingCall():" );
46
47
48
+ Recipient recipient = Recipient .resolved (remotePeer .getId ());
49
+ if (recipient .isGroup ()) {
50
+ Log .w (TAG , "Aborting attempt to start 1:1 call for group recipient: " + remotePeer .getId ());
51
+ return currentState ;
52
+ }
53
+
47
54
currentState = WebRtcVideoUtil .initializeVideo (context , webRtcInteractor .getCameraEventListener (), currentState );
48
55
return beginCallDelegate .handleOutgoingCall (currentState , remotePeer , offerType );
49
56
}
You can’t perform that action at this time.
0 commit comments