(backend) use feature flag in call to summary-v2

Summary enabled is now infered directly from
the feature flag analytics backend.
This commit is contained in:
Florent Chehab
2026-07-06 21:44:34 +02:00
parent 20718f2d5a
commit 224d6ce358
2 changed files with 17 additions and 5 deletions
@@ -18,6 +18,7 @@ from asgiref.sync import async_to_sync
from livekit import api as livekit_api
from core import models, utils
from core.analytics import UserFeatureFlag, is_user_feature_flag_enabled
from core.utils import generate_download_s3_url
logger = logging.getLogger(__name__)
@@ -371,8 +372,9 @@ class NotificationService:
),
"download_link": f"{get_recording_download_base_url()}/{recording.id}",
"form_link": form_link,
# For now the feature flag logic is handled on summary side
"auto_create_summary": True,
"auto_create_summary": is_user_feature_flag_enabled(
owner_access.user, UserFeatureFlag.TRANSCRIPT_SUMMARY_ENABLED
),
},
"metadata": metadata_payload,
}