Hide activity end prompt text when activity is archived (#4364)

* Initial plan

* Hide activity end prompt when activity is archived

Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
Copilot 2025-10-13 14:36:49 -04:00 committed by GitHub
parent 60caaa5218
commit bb0206780c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,14 +196,15 @@ class ActivityStatsMenuState extends State<ActivityStatsMenu> {
),
],
),
Text(
L10n.of(context).activityDropdownDesc,
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.w600,
if (!room.hasArchivedActivity)
Text(
L10n.of(context).activityDropdownDesc,
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.w600,
),
),
),
if (!userComplete) ...[
if (shouldShowEndForAll)
ElevatedButton(