From 77d0fa9ff85682b0e6fbd3477a325c9636cdf7f0 Mon Sep 17 00:00:00 2001 From: Pavan Naik <85051488+PAVANNAIK25@users.noreply.github.com> Date: Tue, 11 Feb 2025 00:59:22 +0530 Subject: [PATCH] fix: the set as default apps issue with links #19176 (#19198) * fix the set as default apps issue with links * Allow (. _ -) in the Mirotalk link --------- Co-authored-by: Pavan --- .../apps/installed/[category]/installed-category-view.tsx | 3 ++- packages/app-store/mirotalk/config.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/modules/apps/installed/[category]/installed-category-view.tsx b/apps/web/modules/apps/installed/[category]/installed-category-view.tsx index e59480a6db..93aeb85841 100644 --- a/apps/web/modules/apps/installed/[category]/installed-category-view.tsx +++ b/apps/web/modules/apps/installed/[category]/installed-category-view.tsx @@ -56,11 +56,12 @@ const IntegrationsContainer = ({ const handleUpdateUserDefaultConferencingApp = ({ appSlug, + appLink, onSuccessCallback, onErrorCallback, }: UpdateUsersDefaultConferencingAppParams) => { updateDefaultAppMutation.mutate( - { appSlug }, + { appSlug, appLink }, { onSuccess: () => { showToast("Default app updated successfully", "success"); diff --git a/packages/app-store/mirotalk/config.json b/packages/app-store/mirotalk/config.json index d1dbcf09fa..5201d4d658 100644 --- a/packages/app-store/mirotalk/config.json +++ b/packages/app-store/mirotalk/config.json @@ -15,7 +15,7 @@ "label": "{TITLE}", "linkType": "static", "organizerInputPlaceholder": "https://p2p.mirotalk.com/join/80085ShinyPhone", - "urlRegExp": "^(http|https):\\/\\/(p2p|sfu)\\.mirotalk\\.com\\/join\\/[a-zA-Z0-9]+$" + "urlRegExp": "^(http|https):\\/\\/(p2p|sfu)\\.mirotalk\\.com\\/join\\/[a-zA-Z0-9._-]+$" } }, "description": "Peer to peer real-time video conferences, optimized for small groups. Unlimited time, unlimited rooms each having 5-8 participants.",