Allow anyone to join a call link.

This commit is contained in:
Alex Hart
2024-09-10 13:10:21 -03:00
committed by Cody Henthorne
parent c3be92d365
commit 9912a5fdfe
7 changed files with 10 additions and 50 deletions

View File

@@ -312,11 +312,6 @@ public class CommunicationActions {
return;
}
if (!RemoteConfig.adHocCalling()) {
Toast.makeText(activity, R.string.CommunicationActions_cant_join_call, Toast.LENGTH_SHORT).show();
return;
}
CallLinkRootKey rootKey = CallLinks.parseUrl(potentialUrl);
if (rootKey == null) {
Log.w(TAG, "Failed to parse root key from call link");
@@ -342,11 +337,6 @@ public class CommunicationActions {
}
private static void startVideoCall(@NonNull CallContext callContext, @NonNull CallLinkRootKey rootKey) {
if (!RemoteConfig.adHocCalling()) {
Toast.makeText(callContext.getContext(), R.string.CommunicationActions_cant_join_call, Toast.LENGTH_SHORT).show();
return;
}
SimpleTask.run(() -> {
CallLinkRoomId roomId = CallLinkRoomId.fromBytes(rootKey.deriveRoomId());
CallLinkTable.CallLink callLink = SignalDatabase.callLinks().getOrCreateCallLinkByRootKey(rootKey);